| 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 <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 // Returns true if any LayerTreeHost is alive. | 93 // Returns true if any LayerTreeHost is alive. |
| 94 static bool AnyLayerTreeHostInstanceExists(); | 94 static bool AnyLayerTreeHostInstanceExists(); |
| 95 | 95 |
| 96 void set_needs_filter_context() { needs_filter_context_ = true; } | 96 void set_needs_filter_context() { needs_filter_context_ = true; } |
| 97 bool needs_offscreen_context() const { | 97 bool needs_offscreen_context() const { |
| 98 return needs_filter_context_ || settings_.accelerate_painting; | 98 return needs_filter_context_ || settings_.accelerate_painting; |
| 99 } | 99 } |
| 100 | 100 |
| 101 // LayerTreeHost interface to Proxy. | 101 // LayerTreeHost interface to Proxy. |
| 102 void WillBeginFrame() { client_->WillBeginFrame(); } | 102 void WillBeginMainFrame() { client_->WillBeginMainFrame(); } |
| 103 void DidBeginFrame(); | 103 void DidBeginMainFrame(); |
| 104 void UpdateClientAnimations(base::TimeTicks monotonic_frame_begin_time); | 104 void UpdateClientAnimations(base::TimeTicks monotonic_frame_begin_time); |
| 105 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); | 105 void AnimateLayers(base::TimeTicks monotonic_frame_begin_time); |
| 106 void DidStopFlinging(); | 106 void DidStopFlinging(); |
| 107 void Layout(); | 107 void Layout(); |
| 108 void BeginCommitOnImplThread(LayerTreeHostImpl* host_impl); | 108 void BeginCommitOnImplThread(LayerTreeHostImpl* host_impl); |
| 109 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl); | 109 void FinishCommitOnImplThread(LayerTreeHostImpl* host_impl); |
| 110 gfx::Size PinchZoomScrollbarSize( | 110 gfx::Size PinchZoomScrollbarSize( |
| 111 WebKit::WebScrollbar::Orientation orientation) const; | 111 WebKit::WebScrollbar::Orientation orientation) const; |
| 112 void SetPinchZoomScrollbarsBoundsAndPosition(); | 112 void SetPinchZoomScrollbarsBoundsAndPosition(); |
| 113 void CreateAndAddPinchZoomScrollbars(); | 113 void CreateAndAddPinchZoomScrollbars(); |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 bool in_paint_layer_contents_; | 344 bool in_paint_layer_contents_; |
| 345 | 345 |
| 346 LatencyInfo latency_info_; | 346 LatencyInfo latency_info_; |
| 347 | 347 |
| 348 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 348 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 349 }; | 349 }; |
| 350 | 350 |
| 351 } // namespace cc | 351 } // namespace cc |
| 352 | 352 |
| 353 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 353 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |