| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 MemoryHistory* memory_history() const; | 61 MemoryHistory* memory_history() const; |
| 62 bool IsActiveTree() const; | 62 bool IsActiveTree() const; |
| 63 bool IsPendingTree() const; | 63 bool IsPendingTree() const; |
| 64 bool IsRecycleTree() const; | 64 bool IsRecycleTree() const; |
| 65 LayerImpl* FindActiveTreeLayerById(int id); | 65 LayerImpl* FindActiveTreeLayerById(int id); |
| 66 LayerImpl* FindPendingTreeLayerById(int id); | 66 LayerImpl* FindPendingTreeLayerById(int id); |
| 67 int MaxTextureSize() const; | 67 int MaxTextureSize() const; |
| 68 bool PinchGestureActive() const; | 68 bool PinchGestureActive() const; |
| 69 base::TimeTicks CurrentFrameTimeTicks() const; | 69 base::TimeTicks CurrentFrameTimeTicks() const; |
| 70 base::Time CurrentFrameTime() const; | 70 base::Time CurrentFrameTime() const; |
| 71 base::TimeTicks CurrentPhysicalTimeTicks() const; |
| 71 void SetNeedsCommit(); | 72 void SetNeedsCommit(); |
| 72 | 73 |
| 73 // Tree specific methods exposed to layer-impl tree. | 74 // Tree specific methods exposed to layer-impl tree. |
| 74 // --------------------------------------------------------------------------- | 75 // --------------------------------------------------------------------------- |
| 75 void SetNeedsRedraw(); | 76 void SetNeedsRedraw(); |
| 76 | 77 |
| 77 // TODO(nduca): These are implemented in cc files temporarily, but will become | 78 // TODO(nduca): These are implemented in cc files temporarily, but will become |
| 78 // trivial accessors in a followup patch. | 79 // trivial accessors in a followup patch. |
| 79 const LayerTreeDebugState& debug_state() const; | 80 const LayerTreeDebugState& debug_state() const; |
| 80 float device_scale_factor() const; | 81 float device_scale_factor() const; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 bool needs_full_tree_sync_; | 235 bool needs_full_tree_sync_; |
| 235 | 236 |
| 236 ui::LatencyInfo latency_info_; | 237 ui::LatencyInfo latency_info_; |
| 237 | 238 |
| 238 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 239 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 239 }; | 240 }; |
| 240 | 241 |
| 241 } // namespace cc | 242 } // namespace cc |
| 242 | 243 |
| 243 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 244 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |