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

Unified Diff: cc/layers/texture_layer.h

Issue 18432002: Blend TextureLayer background-color at draw time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added non-premultiplied test 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/layers/texture_layer.h
diff --git a/cc/layers/texture_layer.h b/cc/layers/texture_layer.h
index 928f05f991516a33d5796bb8b209654dddd6ebfd..d87a9d3fcf385727e9ac59866708b2d0bfee4a1f 100644
--- a/cc/layers/texture_layer.h
+++ b/cc/layers/texture_layer.h
@@ -57,6 +57,10 @@ class CC_EXPORT TextureLayer : public Layer {
// Defaults to true.
void SetPremultipliedAlpha(bool premultiplied_alpha);
+ // Sets whether the texture should be blended with the background color
+ // at draw time. Defaults to false.
+ void SetBlendBackgroundColor(bool blend);
+
// Sets whether this context should rate limit on damage to prevent too many
// frames from being queued up before the compositor gets a chance to run.
// Requires a non-nil client. Defaults to false.
@@ -140,6 +144,7 @@ class CC_EXPORT TextureLayer : public Layer {
// [bottom left, top left, top right, bottom right]
float vertex_opacity_[4];
bool premultiplied_alpha_;
+ bool blend_background_color_;
bool rate_limit_context_;
bool content_committed_;

Powered by Google App Engine
This is Rietveld 408576698