| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 | 315 |
| 318 int render_surface_layer_list_id_; | 316 int render_surface_layer_list_id_; |
| 319 | 317 |
| 320 private: | 318 private: |
| 321 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 319 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 322 }; | 320 }; |
| 323 | 321 |
| 324 } // namespace cc | 322 } // namespace cc |
| 325 | 323 |
| 326 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 324 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |