blob: e23874191a71313e03973d9a2e51ac7534251cf9 [file] [log] [blame] [edit]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/renderer/context.h"
#include <utility>
namespace impeller {
Context::~Context() = default;
Context::Context() = default;
bool Context::UpdateOffscreenLayerPixelFormat(PixelFormat format) {
return false;
}
bool Context::EnqueueCommandBuffer(
std::shared_ptr<CommandBuffer> command_buffer) {
return GetCommandQueue()->Submit({std::move(command_buffer)}).ok();
}
bool Context::FlushCommandBuffers() {
return true;
}
} // namespace impeller