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

Unified Diff: cc/layers/layer_impl.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 | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index e27e74352b403c3729afe8c34fa4d2fb37c546b7..7555e88f4f037631711ac8b251c08d80f18dffa1 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -144,6 +144,9 @@ class CC_EXPORT LayerImpl : LayerAnimationValueObserver {
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;
void SetFilters(const WebKit::WebFilterOperations& filters);
const WebKit::WebFilterOperations& filters() const { return filters_; }
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698