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

Unified Diff: cc/output/gl_renderer_draw_cache.h

Issue 18432002: Blend TextureLayer background-color at draw time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
Index: cc/output/gl_renderer_draw_cache.h
diff --git a/cc/output/gl_renderer_draw_cache.h b/cc/output/gl_renderer_draw_cache.h
index 85369ef0ac5e5cf5165669bbb2d305a19b2aace8..81b88673343ac3bce4ca73829ec57317012b476f 100644
--- a/cc/output/gl_renderer_draw_cache.h
+++ b/cc/output/gl_renderer_draw_cache.h
@@ -35,12 +35,14 @@ struct TexturedQuadDrawCache {
// Information about the program binding that is required to draw.
int uv_xform_location;
+ int background_color_location;
int vertex_opacity_location;
int matrix_location;
int sampler_location;
// A cache for the coalesced quad data.
std::vector<Float4> uv_xform_data;
+ std::vector<Float4> background_color_data;
std::vector<float> vertex_opacity_data;
std::vector<Float16> matrix_data;

Powered by Google App Engine
This is Rietveld 408576698