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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 }; | 86 }; |
87 | 87 |
88 // LayerTreeHost->Proxy callback interface. | 88 // LayerTreeHost->Proxy callback interface. |
89 class LayerTreeHostImplClient { | 89 class LayerTreeHostImplClient { |
90 public: | 90 public: |
91 virtual void UpdateRendererCapabilitiesOnImplThread() = 0; | 91 virtual void UpdateRendererCapabilitiesOnImplThread() = 0; |
92 virtual void DidLoseOutputSurfaceOnImplThread() = 0; | 92 virtual void DidLoseOutputSurfaceOnImplThread() = 0; |
93 virtual void CommitVSyncParameters(base::TimeTicks timebase, | 93 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
94 base::TimeDelta interval) = 0; | 94 base::TimeDelta interval) = 0; |
95 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; | 95 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; |
96 virtual void SetMaxSwapsPendingOnImplThread(int max) = 0; | |
97 virtual void DidSwapBuffersOnImplThread() = 0; | 96 virtual void DidSwapBuffersOnImplThread() = 0; |
98 virtual void DidSwapBuffersCompleteOnImplThread() = 0; | 97 virtual void DidSwapBuffersCompleteOnImplThread() = 0; |
99 virtual void OnResourcelessSoftareDrawStateChanged( | 98 virtual void OnResourcelessSoftareDrawStateChanged( |
100 bool resourceless_draw) = 0; | 99 bool resourceless_draw) = 0; |
101 virtual void OnCanDrawStateChanged(bool can_draw) = 0; | 100 virtual void OnCanDrawStateChanged(bool can_draw) = 0; |
102 virtual void NotifyReadyToActivate() = 0; | 101 virtual void NotifyReadyToActivate() = 0; |
103 virtual void NotifyReadyToDraw() = 0; | 102 virtual void NotifyReadyToDraw() = 0; |
104 // Please call these 3 functions through | 103 // Please call these 3 functions through |
105 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and | 104 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and |
106 // SetNeedsAnimate(). | 105 // SetNeedsAnimate(). |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 822 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
824 | 823 |
825 scoped_ptr<Viewport> viewport_; | 824 scoped_ptr<Viewport> viewport_; |
826 | 825 |
827 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 826 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
828 }; | 827 }; |
829 | 828 |
830 } // namespace cc | 829 } // namespace cc |
831 | 830 |
832 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 831 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |