Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit 2e7d8a7

Browse files
boliuCommit bot
boliu
authored and
Commit bot
committed
gpu: Add missing ScopedRenderTo
MailboxSynchronizer which is used by Android WebView depends on them for correct synchronization. BUG=424293 Review URL: https://codereview.chromium.org/653533005 Cr-Commit-Position: refs/heads/master@{#299969}
1 parent 82aec9c commit 2e7d8a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gpu/command_buffer/service/gles2_cmd_decoder.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4358,6 +4358,7 @@ void GLES2DecoderImpl::DoDiscardFramebufferEXT(GLenum target,
43584358
translated_attachments[i] = attachment;
43594359
}
43604360

4361+
ScopedRenderTo do_render(framebuffer);
43614362
glDiscardFramebufferEXT(target, numAttachments, translated_attachments.get());
43624363
}
43634364

@@ -4999,6 +5000,7 @@ error::Error GLES2DecoderImpl::DoClear(GLbitfield mask) {
49995000
DCHECK(!ShouldDeferDraws());
50005001
if (CheckBoundFramebuffersValid("glClear")) {
50015002
ApplyDirtyState();
5003+
ScopedRenderTo do_render(framebuffer_state_.bound_draw_framebuffer.get());
50025004
glClear(mask);
50035005
}
50045006
return error::kNoError;
@@ -5300,6 +5302,7 @@ void GLES2DecoderImpl::DoBlitFramebufferCHROMIUM(
53005302
}
53015303

53025304
state_.SetDeviceCapabilityState(GL_SCISSOR_TEST, false);
5305+
ScopedRenderTo do_render(framebuffer_state_.bound_draw_framebuffer.get());
53035306
BlitFramebufferHelper(
53045307
srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
53055308
state_.SetDeviceCapabilityState(GL_SCISSOR_TEST,

0 commit comments

Comments
 (0)