OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_HOST_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 #include <list> | 9 #include <list> |
10 #include <set> | 10 #include <set> |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 LayerTreeHostClient* client() { return client_; } | 125 LayerTreeHostClient* client() { return client_; } |
126 const base::WeakPtr<InputHandler>& GetInputHandler() { | 126 const base::WeakPtr<InputHandler>& GetInputHandler() { |
127 return input_handler_weak_ptr_; | 127 return input_handler_weak_ptr_; |
128 } | 128 } |
129 | 129 |
130 void NotifyInputThrottledUntilCommit(); | 130 void NotifyInputThrottledUntilCommit(); |
131 | 131 |
132 void Composite(base::TimeTicks frame_begin_time); | 132 void Composite(base::TimeTicks frame_begin_time); |
133 | 133 |
134 // Composites and attempts to read back the result into the provided | |
135 // buffer. If it wasn't possible, e.g. due to context lost, will return | |
136 // false. | |
137 bool CompositeAndReadback(void* pixels, | |
138 const gfx::Rect& rect_in_device_viewport); | |
139 | |
140 void FinishAllRendering(); | 134 void FinishAllRendering(); |
141 | 135 |
142 void SetDeferCommits(bool defer_commits); | 136 void SetDeferCommits(bool defer_commits); |
143 | 137 |
144 // Test only hook | 138 // Test only hook |
145 virtual void DidDeferCommit(); | 139 virtual void DidDeferCommit(); |
146 | 140 |
147 int source_frame_number() const { return source_frame_number_; } | 141 int source_frame_number() const { return source_frame_number_; } |
148 | 142 |
149 void SetNeedsDisplayOnAllLayers(); | 143 void SetNeedsDisplayOnAllLayers(); |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 | 443 |
450 ScopedPtrVector<SwapPromise> swap_promise_list_; | 444 ScopedPtrVector<SwapPromise> swap_promise_list_; |
451 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 445 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
452 | 446 |
453 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 447 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
454 }; | 448 }; |
455 | 449 |
456 } // namespace cc | 450 } // namespace cc |
457 | 451 |
458 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 452 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |