Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3690)

Unified Diff: cc/output/gl_renderer.cc

Issue 2250883004: mac: Fix IOSurface clearing for RPDQ CALayer promotion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index 98e7eb1c8b06c288ced51168bedbf3931e995ea4..aa7136537bf31ab7e956827a19cc9db8d2eeb795 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -3975,7 +3975,11 @@ void GLRenderer::CopyRenderPassDrawQuadToOverlayResource(
// Clear to 0 to ensure the background is transparent.
gl_->ClearColor(0, 0, 0, 0);
+ if (is_scissor_enabled_)
+ gl_->Disable(GL_SCISSOR_TEST);
gl_->Clear(GL_COLOR_BUFFER_BIT);
+ if (is_scissor_enabled_)
+ gl_->Enable(GL_SCISSOR_TEST);
UpdateRPDQTexturesForSampling(&params);
UpdateRPDQBlendMode(&params);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698