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

Side by Side Diff: cc/layer_tree_impl.h

Issue 12408028: cc: Delay start of scrollbar animation setNeedsRedraw. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to 188682 Created 7 years, 9 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 unified diff | Download patch
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYER_TREE_IMPL_H_ 5 #ifndef CC_LAYER_TREE_IMPL_H_
6 #define CC_LAYER_TREE_IMPL_H_ 6 #define CC_LAYER_TREE_IMPL_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "cc/layer_impl.h" 10 #include "cc/layer_impl.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 96
97 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; } 97 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; }
98 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) { 98 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) {
99 hud_layer_ = layer_impl; 99 hud_layer_ = layer_impl;
100 } 100 }
101 101
102 LayerImpl* RootScrollLayer() const; 102 LayerImpl* RootScrollLayer() const;
103 LayerImpl* RootClipLayer() const; 103 LayerImpl* RootClipLayer() const;
104 LayerImpl* CurrentlyScrollingLayer() const; 104 LayerImpl* CurrentlyScrollingLayer() const;
105 void set_currently_scrolling_layer(LayerImpl* layer) { 105 void SetCurrentlyScrollingLayer(LayerImpl* layer);
106 currently_scrolling_layer_ = layer;
107 }
108
109 void ClearCurrentlyScrollingLayer(); 106 void ClearCurrentlyScrollingLayer();
110 107
111 void FindRootScrollLayer(); 108 void FindRootScrollLayer();
112 void UpdateMaxScrollOffset(); 109 void UpdateMaxScrollOffset();
113 110
114 SkColor background_color() const { return background_color_; } 111 SkColor background_color() const { return background_color_; }
115 void set_background_color(SkColor color) { background_color_ = color; } 112 void set_background_color(SkColor color) { background_color_ = color; }
116 113
117 bool has_transparent_background() const { 114 bool has_transparent_background() const {
118 return has_transparent_background_; 115 return has_transparent_background_;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // In impl-side painting mode, this is true when the tree may contain 244 // In impl-side painting mode, this is true when the tree may contain
248 // structural differences relative to the active tree. 245 // structural differences relative to the active tree.
249 bool needs_full_tree_sync_; 246 bool needs_full_tree_sync_;
250 247
251 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 248 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
252 }; 249 };
253 250
254 } 251 }
255 252
256 #endif // CC_LAYER_TREE_IMPL_H_ 253 #endif // CC_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698