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

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: added TextureLayer unittest 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/layers/texture_layer_impl.h
diff --git a/cc/layers/texture_layer_impl.h b/cc/layers/texture_layer_impl.h
index b23498ef90e849b490a161f3209ff788022434bf..ebc364ee7b87656c40f5f469d80bf99d4a21e203 100644
--- a/cc/layers/texture_layer_impl.h
+++ b/cc/layers/texture_layer_impl.h
@@ -41,6 +41,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) {
@@ -70,6 +73,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_;

Powered by Google App Engine
This is Rietveld 408576698