Chromium Code Reviews| Index: cc/CCRendererGL.cpp |
| diff --git a/cc/CCRendererGL.cpp b/cc/CCRendererGL.cpp |
| index f86e96c0962aa8b0b47b9168b303986b63c84554..611d3856dfe15c34e78ff306110bbd7e2678b28c 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), 1)); |
|
jamesr
2012/09/21 22:28:08
why are you dividing red and green by 255.0 but le
|
| + |
| IntRect tileRect = quad->quadRect(); |
| float texOffsetX = tileRect.x(); |
| float texOffsetY = tileRect.y(); |