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

Unified Diff: cc/layer_tree_impl.h

Issue 11704003: cc: Move more functionality from host to LayerTreeImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/layer_tree_impl.h
diff --git a/cc/layer_tree_impl.h b/cc/layer_tree_impl.h
index 8d65030e13965991d35e2e232baa560e548a2dc2..64a259ba52d2b808a9edb1e6d96fbc8bd954d923 100644
--- a/cc/layer_tree_impl.h
+++ b/cc/layer_tree_impl.h
@@ -94,6 +94,14 @@ class CC_EXPORT LayerTreeImpl {
void UpdateMaxScrollOffset();
+ SkColor background_color() const { return background_color_; }
+ void set_background_color(SkColor color) { background_color_ = color; }
+
+ bool has_transparent_background() const { return has_transparent_background_; }
danakj 2013/01/04 22:14:29 80 cols
+ void set_has_transparent_background(bool transparent) {
+ has_transparent_background_ = transparent;
+ }
+
// Updates draw properties and render surface layer list
void UpdateDrawProperties();
@@ -120,6 +128,8 @@ protected:
HeadsUpDisplayLayerImpl* hud_layer_;
LayerImpl* root_scroll_layer_;
LayerImpl* currently_scrolling_layer_;
+ SkColor background_color_;
+ bool has_transparent_background_;
typedef base::hash_map<int, LayerImpl*> LayerIdMap;
LayerIdMap layer_id_map_;

Powered by Google App Engine
This is Rietveld 408576698