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 <string> | 10 #include <string> |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 virtual ~LayerTreeHost(); | 120 virtual ~LayerTreeHost(); |
121 | 121 |
122 void SetLayerTreeHostClientReady(); | 122 void SetLayerTreeHostClientReady(); |
123 | 123 |
124 void set_needs_filter_context() { needs_filter_context_ = true; } | 124 void set_needs_filter_context() { needs_filter_context_ = true; } |
125 bool needs_offscreen_context() const { | 125 bool needs_offscreen_context() const { |
126 return needs_filter_context_; | 126 return needs_filter_context_; |
127 } | 127 } |
128 | 128 |
129 // LayerTreeHost interface to Proxy. | 129 // LayerTreeHost interface to Proxy. |
130 void WillBeginMainFrame() { client_->WillBeginMainFrame(); } | 130 void WillBeginMainFrame() { |
| 131 client_->WillBeginMainFrame(source_frame_number_); |
| 132 } |
131 void DidBeginMainFrame(); | 133 void DidBeginMainFrame(); |
132 void UpdateClientAnimations(base::TimeTicks monotonic_frame_begin_time); | 134 void UpdateClientAnimations(base::TimeTicks monotonic_frame_begin_time); |
133 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); | 135 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); |
134 void DidStopFlinging(); | 136 void DidStopFlinging(); |
135 void Layout(); | 137 void Layout(); |
136 void BeginCommitOnImplThread(LayerTreeHostImpl* host_impl); | 138 void BeginCommitOnImplThread(LayerTreeHostImpl* host_impl); |
137 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl); | 139 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl); |
138 void WillCommit(); | 140 void WillCommit(); |
139 void CommitComplete(); | 141 void CommitComplete(); |
140 scoped_ptr<OutputSurface> CreateOutputSurface(); | 142 scoped_ptr<OutputSurface> CreateOutputSurface(); |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 scoped_refptr<Layer> outer_viewport_scroll_layer_; | 457 scoped_refptr<Layer> outer_viewport_scroll_layer_; |
456 | 458 |
457 SharedBitmapManager* shared_bitmap_manager_; | 459 SharedBitmapManager* shared_bitmap_manager_; |
458 | 460 |
459 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 461 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
460 }; | 462 }; |
461 | 463 |
462 } // namespace cc | 464 } // namespace cc |
463 | 465 |
464 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 466 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |