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

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 2867793002: Add a cache of LayerImpl's viewport layer type (Closed)
Patch Set: Rebase from space Created 3 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 unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/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_TREES_LAYER_TREE_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 const ScrollNode* CurrentlyScrollingNode() const; 182 const ScrollNode* CurrentlyScrollingNode() const;
183 int LastScrolledScrollNodeIndex() const; 183 int LastScrolledScrollNodeIndex() const;
184 void SetCurrentlyScrollingNode(ScrollNode* node); 184 void SetCurrentlyScrollingNode(ScrollNode* node);
185 void ClearCurrentlyScrollingNode(); 185 void ClearCurrentlyScrollingNode();
186 186
187 void SetViewportLayersFromIds(int overscroll_elasticity_layer, 187 void SetViewportLayersFromIds(int overscroll_elasticity_layer,
188 int page_scale_layer_id, 188 int page_scale_layer_id,
189 int inner_viewport_scroll_layer_id, 189 int inner_viewport_scroll_layer_id,
190 int outer_viewport_scroll_layer_id); 190 int outer_viewport_scroll_layer_id);
191 void ClearViewportLayers(); 191 void ClearViewportLayers();
192 // Sets the viewport layer types. This depends on the viewport layers from
193 // SetViewportLayersFromIds and the viewport layer's scroll_clip_layer_ids.
194 void UpdateViewportLayerTypes();
192 LayerImpl* OverscrollElasticityLayer() { 195 LayerImpl* OverscrollElasticityLayer() {
193 return LayerById(overscroll_elasticity_layer_id_); 196 return LayerById(overscroll_elasticity_layer_id_);
194 } 197 }
195 LayerImpl* PageScaleLayer() { return LayerById(page_scale_layer_id_); } 198 LayerImpl* PageScaleLayer() { return LayerById(page_scale_layer_id_); }
196 void ApplySentScrollAndScaleDeltasFromAbortedCommit(); 199 void ApplySentScrollAndScaleDeltasFromAbortedCommit();
197 200
198 SkColor background_color() const { return background_color_; } 201 SkColor background_color() const { return background_color_; }
199 void set_background_color(SkColor color) { background_color_ = color; } 202 void set_background_color(SkColor color) { background_color_ = color; }
200 203
201 bool has_transparent_background() const { 204 bool has_transparent_background() const {
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 584
582 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 585 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
583 586
584 private: 587 private:
585 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 588 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
586 }; 589 };
587 590
588 } // namespace cc 591 } // namespace cc
589 592
590 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 593 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698