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

Unified Diff: cc/gl_renderer_unittest.cc

Issue 12036091: Fixes a bug when the framebuffer is cleared with invalid scissor rect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved check to FakeRendererGL. Created 7 years, 11 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
« cc/gl_renderer.h ('K') | « cc/gl_renderer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/gl_renderer_unittest.cc
diff --git a/cc/gl_renderer_unittest.cc b/cc/gl_renderer_unittest.cc
index 89603b1ece65c8fc80ad1e4ae92a6678a0ed091f..24cddf5fee2f16d2e654f4304b26f988811abcab 100644
--- a/cc/gl_renderer_unittest.cc
+++ b/cc/gl_renderer_unittest.cc
@@ -119,6 +119,14 @@ public:
using GLRenderer::drawQuad;
using GLRenderer::beginDrawingFrame;
using GLRenderer::finishDrawingQuadList;
+
+ void clearFramebuffer(DrawingFrame& frame) {
+ // Check that scissor test is disabled unless we're using scissor
+ // as optimization when usingPartialSwap is on.
+ if (!capabilities().usingPartialSwap)
+ EXPECT_FALSE(isScissorEnabledForTesting());
danakj 2013/01/29 00:00:46 Do we have any unit tests that would fail this wit
+ GLRenderer::clearFramebuffer(frame);
+ }
};
class GLRendererTest : public testing::Test {
« cc/gl_renderer.h ('K') | « cc/gl_renderer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698