13CommandBufferGLES::CommandBufferGLES(std::weak_ptr<const Context> context,
15 : CommandBuffer(
std::move(context)),
16 reactor_(
std::move(reactor)),
17 is_valid_(reactor_ && reactor_->IsValid()) {}
19CommandBufferGLES::~CommandBufferGLES() =
default;
22void CommandBufferGLES::SetLabel(
const std::string& label)
const {
27bool CommandBufferGLES::IsValid()
const {
32bool CommandBufferGLES::OnSubmitCommands(CompletionCallback
callback) {
33 const auto result = reactor_->React();
42void CommandBufferGLES::OnWaitUntilScheduled() {
43 reactor_->GetProcTable().Flush();
47std::shared_ptr<RenderPass> CommandBufferGLES::OnCreateRenderPass(
52 auto context = context_.lock();
56 auto pass = std::shared_ptr<RenderPassGLES>(
57 new RenderPassGLES(context,
target, reactor_));
58 if (!pass->IsValid()) {
65std::shared_ptr<BlitPass> CommandBufferGLES::OnCreateBlitPass() {
69 auto pass = std::shared_ptr<BlitPassGLES>(
new BlitPassGLES(reactor_));
70 if (!pass->IsValid()) {
77std::shared_ptr<ComputePass> CommandBufferGLES::OnCreateComputePass() {
std::shared_ptr< ReactorGLES > Ref
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
SK_API sk_sp< SkSurface > RenderTarget(GrRecordingContext *context, skgpu::Budgeted budgeted, const SkImageInfo &imageInfo, int sampleCount, GrSurfaceOrigin surfaceOrigin, const SkSurfaceProps *surfaceProps, bool shouldCreateWithMips=false, bool isProtected=false)