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

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: fixing unittest 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
Index: cc/gl_renderer_draw_cache.h
diff --git a/cc/gl_renderer_draw_cache.h b/cc/gl_renderer_draw_cache.h
index c0a2b6900d8b9b34846f3813baf020225002947a..161214783e79d340f4dfe6cf6ed247a4af4a5c5c 100644
--- a/cc/gl_renderer_draw_cache.h
+++ b/cc/gl_renderer_draw_cache.h
@@ -24,17 +24,17 @@ 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;
// A cache for the coalesced quad data.
std::vector<Float4> uv_xform_data;
+ std::vector<float> vertex_opacity_data;
std::vector<Float16> matrix_data;
};

Powered by Google App Engine
This is Rietveld 408576698