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

Unified Diff: cc/layers/layer.h

Issue 15995031: cc: Don't clear transparent piles to an opaque color (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « no previous file | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index b7d56cd2eac20dfc79f46ab84c494f52a46cc72b..ba2e3dab6711bfeeb3619ebd8c1697bf1ee2e089 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -94,6 +94,9 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
virtual void SetBackgroundColor(SkColor background_color);
SkColor background_color() const { return background_color_; }
+ // If contents_opaque(), return an opaque color else return a
+ // non-opaque color. Tries to return background_color(), if possible.
+ SkColor SafeOpaqueBackgroundColor() const;
// A layer's bounds are in logical, non-page-scaled pixels (however, the
// root layer's bounds are in physical pixels).
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698