| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 TileManager* tile_manager() const; | 80 TileManager* tile_manager() const; |
| 81 FrameRateCounter* frame_rate_counter() const; | 81 FrameRateCounter* frame_rate_counter() const; |
| 82 PaintTimeCounter* paint_time_counter() const; | 82 PaintTimeCounter* paint_time_counter() const; |
| 83 MemoryHistory* memory_history() const; | 83 MemoryHistory* memory_history() const; |
| 84 gfx::Size device_viewport_size() const; | 84 gfx::Size device_viewport_size() const; |
| 85 float device_scale_factor() const; | 85 float device_scale_factor() const; |
| 86 DebugRectHistory* debug_rect_history() const; | 86 DebugRectHistory* debug_rect_history() const; |
| 87 bool IsActiveTree() const; | 87 bool IsActiveTree() const; |
| 88 bool IsPendingTree() const; | 88 bool IsPendingTree() const; |
| 89 bool IsRecycleTree() const; | 89 bool IsRecycleTree() const; |
| 90 bool IsSyncTree() const; |
| 90 LayerImpl* FindActiveTreeLayerById(int id); | 91 LayerImpl* FindActiveTreeLayerById(int id); |
| 91 LayerImpl* FindPendingTreeLayerById(int id); | 92 LayerImpl* FindPendingTreeLayerById(int id); |
| 92 bool PinchGestureActive() const; | 93 bool PinchGestureActive() const; |
| 93 BeginFrameArgs CurrentBeginFrameArgs() const; | 94 BeginFrameArgs CurrentBeginFrameArgs() const; |
| 94 base::TimeDelta begin_impl_frame_interval() const; | 95 base::TimeDelta begin_impl_frame_interval() const; |
| 95 void SetNeedsCommit(); | 96 void SetNeedsCommit(); |
| 96 gfx::Rect DeviceViewport() const; | 97 gfx::Rect DeviceViewport() const; |
| 97 gfx::Size DrawViewportSize() const; | 98 gfx::Size DrawViewportSize() const; |
| 98 const gfx::Rect ViewportRectForTilePriority() const; | 99 const gfx::Rect ViewportRectForTilePriority() const; |
| 99 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController( | 100 scoped_ptr<ScrollbarAnimationController> CreateScrollbarAnimationController( |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 } | 191 } |
| 191 | 192 |
| 192 SyncedTopControls* top_controls_shown_ratio() { | 193 SyncedTopControls* top_controls_shown_ratio() { |
| 193 return top_controls_shown_ratio_.get(); | 194 return top_controls_shown_ratio_.get(); |
| 194 } | 195 } |
| 195 const SyncedTopControls* top_controls_shown_ratio() const { | 196 const SyncedTopControls* top_controls_shown_ratio() const { |
| 196 return top_controls_shown_ratio_.get(); | 197 return top_controls_shown_ratio_.get(); |
| 197 } | 198 } |
| 198 | 199 |
| 199 // Updates draw properties and render surface layer list, as well as tile | 200 // Updates draw properties and render surface layer list, as well as tile |
| 200 // priorities. Returns false if it was unable to update. | 201 // priorities. Returns false if it was unable to update. Updating lcd |
| 201 bool UpdateDrawProperties(); | 202 // text may cause invalidations, so should only be done after a commit. |
| 203 bool UpdateDrawProperties(bool update_lcd_text); |
| 202 | 204 |
| 203 void set_needs_update_draw_properties() { | 205 void set_needs_update_draw_properties() { |
| 204 needs_update_draw_properties_ = true; | 206 needs_update_draw_properties_ = true; |
| 205 } | 207 } |
| 206 bool needs_update_draw_properties() const { | 208 bool needs_update_draw_properties() const { |
| 207 return needs_update_draw_properties_; | 209 return needs_update_draw_properties_; |
| 208 } | 210 } |
| 209 | 211 |
| 210 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } | 212 void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; } |
| 211 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } | 213 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 418 |
| 417 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 419 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 418 | 420 |
| 419 private: | 421 private: |
| 420 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 422 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 421 }; | 423 }; |
| 422 | 424 |
| 423 } // namespace cc | 425 } // namespace cc |
| 424 | 426 |
| 425 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 427 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |