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

Unified Diff: cc/CCRendererGL.cpp

Issue 10990116: [cc] Color evicted vs. invalidated checkerboard tiles differently (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « cc/CCRenderPassTest.cpp ('k') | cc/CCTiledLayerImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCRendererGL.cpp
diff --git a/cc/CCRendererGL.cpp b/cc/CCRendererGL.cpp
index 50fed7abcf40c750d65b5087d4ec73b8e9b4c65e..c80533c4ebeda65ea60203df88f75b30502436aa 100644
--- a/cc/CCRendererGL.cpp
+++ b/cc/CCRendererGL.cpp
@@ -284,6 +284,9 @@ void CCRendererGL::drawCheckerboardQuad(const DrawingFrame& frame, const CCCheck
ASSERT(program && program->initialized());
GLC(context(), context()->useProgram(program->program()));
+ SkColor color = quad->color();
+ GLC(context(), context()->uniform4f(program->fragmentShader().colorLocation(), SkColorGetR(color) / 255.0, SkColorGetG(color) / 255.0, SkColorGetB(color) / 255.0, 1));
+
IntRect tileRect = quad->quadRect();
float texOffsetX = tileRect.x();
float texOffsetY = tileRect.y();
« no previous file with comments | « cc/CCRenderPassTest.cpp ('k') | cc/CCTiledLayerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698