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

Unified Diff: cc/layers/texture_layer_impl.h

Issue 18432002: Blend TextureLayer background-color at draw time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolved conflicts with TOT 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
« no previous file with comments | « cc/layers/texture_layer.cc ('k') | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/texture_layer_impl.h
diff --git a/cc/layers/texture_layer_impl.h b/cc/layers/texture_layer_impl.h
index 63a9c0f38a5ea6f6890c263d970c2a9d3b01a078..4cd2492463f5291fa3420f58657ccd4ffd83fc81 100644
--- a/cc/layers/texture_layer_impl.h
+++ b/cc/layers/texture_layer_impl.h
@@ -39,6 +39,9 @@ class CC_EXPORT TextureLayerImpl : public LayerImpl {
void set_premultiplied_alpha(bool premultiplied_alpha) {
premultiplied_alpha_ = premultiplied_alpha;
}
+ void set_blend_background_color(bool blend) {
+ blend_background_color_ = blend;
+ }
void set_flipped(bool flipped) { flipped_ = flipped; }
void set_uv_top_left(gfx::PointF top_left) { uv_top_left_ = top_left; }
void set_uv_bottom_right(gfx::PointF bottom_right) {
@@ -68,6 +71,7 @@ class CC_EXPORT TextureLayerImpl : public LayerImpl {
unsigned texture_id_;
ResourceProvider::ResourceId external_texture_resource_;
bool premultiplied_alpha_;
+ bool blend_background_color_;
bool flipped_;
gfx::PointF uv_top_left_;
gfx::PointF uv_bottom_right_;
« no previous file with comments | « cc/layers/texture_layer.cc ('k') | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698