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

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

Issue 290573007: cc: Move gpu rasterization flag from tree-impl to tree-host-impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_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 <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 LayerImpl* FindPendingTreeLayerById(int id); 81 LayerImpl* FindPendingTreeLayerById(int id);
82 int MaxTextureSize() const; 82 int MaxTextureSize() const;
83 bool PinchGestureActive() const; 83 bool PinchGestureActive() const;
84 base::TimeTicks CurrentFrameTimeTicks() const; 84 base::TimeTicks CurrentFrameTimeTicks() const;
85 base::TimeDelta begin_impl_frame_interval() const; 85 base::TimeDelta begin_impl_frame_interval() const;
86 void SetNeedsCommit(); 86 void SetNeedsCommit();
87 gfx::Size DrawViewportSize() const; 87 gfx::Size DrawViewportSize() const;
88 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController( 88 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController(
89 LayerImpl* scrolling_layer); 89 LayerImpl* scrolling_layer);
90 void DidAnimateScrollOffset(); 90 void DidAnimateScrollOffset();
91 bool use_gpu_rasterization() const;
91 92
92 // Tree specific methods exposed to layer-impl tree. 93 // Tree specific methods exposed to layer-impl tree.
93 // --------------------------------------------------------------------------- 94 // ---------------------------------------------------------------------------
94 void SetNeedsRedraw(); 95 void SetNeedsRedraw();
95 96
96 // TODO(nduca): These are implemented in cc files temporarily, but will become 97 // TODO(nduca): These are implemented in cc files temporarily, but will become
97 // trivial accessors in a followup patch. 98 // trivial accessors in a followup patch.
98 const LayerTreeDebugState& debug_state() const; 99 const LayerTreeDebugState& debug_state() const;
99 float device_scale_factor() const; 100 float device_scale_factor() const;
100 DebugRectHistory* debug_rect_history() const; 101 DebugRectHistory* debug_rect_history() const;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 } 158 }
158 float page_scale_factor() const { return page_scale_factor_; } 159 float page_scale_factor() const { return page_scale_factor_; }
159 float min_page_scale_factor() const { return min_page_scale_factor_; } 160 float min_page_scale_factor() const { return min_page_scale_factor_; }
160 float max_page_scale_factor() const { return max_page_scale_factor_; } 161 float max_page_scale_factor() const { return max_page_scale_factor_; }
161 float page_scale_delta() const { return page_scale_delta_; } 162 float page_scale_delta() const { return page_scale_delta_; }
162 void set_sent_page_scale_delta(float delta) { 163 void set_sent_page_scale_delta(float delta) {
163 sent_page_scale_delta_ = delta; 164 sent_page_scale_delta_ = delta;
164 } 165 }
165 float sent_page_scale_delta() const { return sent_page_scale_delta_; } 166 float sent_page_scale_delta() const { return sent_page_scale_delta_; }
166 167
167 void SetUseGpuRasterization(bool use_gpu);
168 bool use_gpu_rasterization() const { return use_gpu_rasterization_; }
169
170 // Updates draw properties and render surface layer list, as well as tile 168 // Updates draw properties and render surface layer list, as well as tile
171 // priorities. 169 // priorities.
172 void UpdateDrawProperties(); 170 void UpdateDrawProperties();
173 171
174 void set_needs_update_draw_properties() { 172 void set_needs_update_draw_properties() {
175 needs_update_draw_properties_ = true; 173 needs_update_draw_properties_ = true;
176 } 174 }
177 bool needs_update_draw_properties() const { 175 bool needs_update_draw_properties() const {
178 return needs_update_draw_properties_; 176 return needs_update_draw_properties_;
179 } 177 }
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 314
317 int render_surface_layer_list_id_; 315 int render_surface_layer_list_id_;
318 316
319 private: 317 private:
320 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 318 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
321 }; 319 };
322 320
323 } // namespace cc 321 } // namespace cc
324 322
325 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 323 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698