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

Unified Diff: cc/quads/texture_draw_quad.h

Issue 18432002: Blend TextureLayer background-color at draw time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: implemented software renderer Created 7 years, 5 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/quads/texture_draw_quad.h
diff --git a/cc/quads/texture_draw_quad.h b/cc/quads/texture_draw_quad.h
index 0b35568ac90307593a4eace5ebf1f9b0fbf528e1..00587e639e11ba4320c96d09292925f6739d2123 100644
--- a/cc/quads/texture_draw_quad.h
+++ b/cc/quads/texture_draw_quad.h
@@ -24,6 +24,7 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
gfx::PointF uv_top_left,
gfx::PointF uv_bottom_right,
const float vertex_opacity[4],
+ SkColor background_color,
bool flipped);
void SetAll(const SharedQuadState* shared_quad_state,
@@ -36,6 +37,7 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
gfx::PointF uv_top_left,
gfx::PointF uv_bottom_right,
const float vertex_opacity[4],
+ SkColor background_color,
bool flipped);
unsigned resource_id;
@@ -43,6 +45,7 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
gfx::PointF uv_top_left;
gfx::PointF uv_bottom_right;
float vertex_opacity[4];
+ SkColor background_color;
bool flipped;
virtual void IterateResources(const ResourceIteratorCallback& callback)

Powered by Google App Engine
This is Rietveld 408576698