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

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: Rebase Created 7 years, 12 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/layer_tree_host_unittest.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_impl.h
diff --git a/cc/layer_tree_impl.h b/cc/layer_tree_impl.h
index 8d65030e13965991d35e2e232baa560e548a2dc2..fef94c551b0c68e446f2cd08684f2e4aa4dd7104 100644
--- a/cc/layer_tree_impl.h
+++ b/cc/layer_tree_impl.h
@@ -78,22 +78,40 @@ class CC_EXPORT LayerTreeImpl {
scoped_ptr<LayerImpl> DetachLayerTree();
int source_frame_number() const { return source_frame_number_; }
- void set_source_frame_number(int frame_number) { source_frame_number_ = frame_number; }
+ void set_source_frame_number(int frame_number) {
+ source_frame_number_ = frame_number;
+ }
HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; }
- void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) { hud_layer_ = layer_impl; }
+ void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) {
+ hud_layer_ = layer_impl;
+ }
LayerImpl* root_scroll_layer() { return root_scroll_layer_; }
const LayerImpl* root_scroll_layer() const { return root_scroll_layer_; }
- void set_root_scroll_layer(LayerImpl* layer_impl) { root_scroll_layer_ = layer_impl; }
+ void set_root_scroll_layer(LayerImpl* layer_impl) {
+ root_scroll_layer_ = layer_impl;
+ }
LayerImpl* currently_scrolling_layer() { return currently_scrolling_layer_; }
- void set_currently_scrolling_layer(LayerImpl* layer_impl) { currently_scrolling_layer_ = layer_impl; }
+ void set_currently_scrolling_layer(LayerImpl* layer_impl) {
+ currently_scrolling_layer_ = layer_impl;
+ }
void ClearCurrentlyScrollingLayer();
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_;
+ }
+ void set_has_transparent_background(bool transparent) {
+ has_transparent_background_ = transparent;
+ }
+
// Updates draw properties and render surface layer list
void UpdateDrawProperties();
@@ -120,6 +138,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_;
« no previous file with comments | « cc/layer_tree_host_unittest.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698