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

Unified Diff: cc/gl_renderer_draw_cache.h

Issue 11570027: Adding support for per vertex opacity on textured layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years 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/gl_renderer.cc ('k') | cc/heads_up_display_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/gl_renderer_draw_cache.h
diff --git a/cc/gl_renderer_draw_cache.h b/cc/gl_renderer_draw_cache.h
index 4ba4c657ff2c275336f33020ce203059982501c1..cc533e01d448b254cb74911d051cea5ce3c0a48a 100644
--- a/cc/gl_renderer_draw_cache.h
+++ b/cc/gl_renderer_draw_cache.h
@@ -24,18 +24,18 @@ struct TexturedQuadDrawCache {
// Values tracked to determine if textured quads may be coalesced.
int program_id;
int resource_id;
- float alpha;
bool use_premultiplied_alpha;
bool needs_blending;
// Information about the program binding that is required to draw.
- int alpha_location;
int uv_xform_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<float> vertex_opacity_data;
std::vector<Float16> matrix_data;
};
« no previous file with comments | « cc/gl_renderer.cc ('k') | cc/heads_up_display_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698