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 <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 class TopControlsManager; | 57 class TopControlsManager; |
58 class UIResourceBitmap; | 58 class UIResourceBitmap; |
59 class UIResourceRequest; | 59 class UIResourceRequest; |
60 struct RendererCapabilitiesImpl; | 60 struct RendererCapabilitiesImpl; |
61 | 61 |
62 // LayerTreeHost->Proxy callback interface. | 62 // LayerTreeHost->Proxy callback interface. |
63 class LayerTreeHostImplClient { | 63 class LayerTreeHostImplClient { |
64 public: | 64 public: |
65 virtual void UpdateRendererCapabilitiesOnImplThread() = 0; | 65 virtual void UpdateRendererCapabilitiesOnImplThread() = 0; |
66 virtual void DidLoseOutputSurfaceOnImplThread() = 0; | 66 virtual void DidLoseOutputSurfaceOnImplThread() = 0; |
| 67 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
| 68 base::TimeDelta interval) = 0; |
| 69 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; |
67 virtual void SetMaxSwapsPending(int max) = 0; | 70 virtual void SetMaxSwapsPending(int max) = 0; |
68 virtual void DidSwapBuffersOnImplThread() = 0; | 71 virtual void DidSwapBuffersOnImplThread() = 0; |
69 virtual void DidSwapBuffersCompleteOnImplThread() = 0; | 72 virtual void DidSwapBuffersCompleteOnImplThread() = 0; |
70 virtual void BeginFrame(const BeginFrameArgs& args) = 0; | 73 virtual void BeginFrame(const BeginFrameArgs& args) = 0; |
71 virtual void OnCanDrawStateChanged(bool can_draw) = 0; | 74 virtual void OnCanDrawStateChanged(bool can_draw) = 0; |
72 virtual void NotifyReadyToActivate() = 0; | 75 virtual void NotifyReadyToActivate() = 0; |
73 // Please call these 2 functions through | 76 // Please call these 2 functions through |
74 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). | 77 // LayerTreeHostImpl's SetNeedsRedraw() and SetNeedsRedrawRect(). |
75 virtual void SetNeedsRedrawOnImplThread() = 0; | 78 virtual void SetNeedsRedrawOnImplThread() = 0; |
76 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; | 79 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // RendererClient implementation. | 222 // RendererClient implementation. |
220 virtual void SetFullRootLayerDamage() OVERRIDE; | 223 virtual void SetFullRootLayerDamage() OVERRIDE; |
221 | 224 |
222 // TileManagerClient implementation. | 225 // TileManagerClient implementation. |
223 virtual void NotifyReadyToActivate() OVERRIDE; | 226 virtual void NotifyReadyToActivate() OVERRIDE; |
224 | 227 |
225 // OutputSurfaceClient implementation. | 228 // OutputSurfaceClient implementation. |
226 virtual bool DeferredInitialize( | 229 virtual bool DeferredInitialize( |
227 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE; | 230 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE; |
228 virtual void ReleaseGL() OVERRIDE; | 231 virtual void ReleaseGL() OVERRIDE; |
| 232 virtual void CommitVSyncParameters(base::TimeTicks timebase, |
| 233 base::TimeDelta interval) OVERRIDE; |
229 virtual void SetNeedsRedrawRect(const gfx::Rect& rect) OVERRIDE; | 234 virtual void SetNeedsRedrawRect(const gfx::Rect& rect) OVERRIDE; |
230 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; | 235 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; |
231 virtual void SetExternalDrawConstraints( | 236 virtual void SetExternalDrawConstraints( |
232 const gfx::Transform& transform, | 237 const gfx::Transform& transform, |
233 const gfx::Rect& viewport, | 238 const gfx::Rect& viewport, |
234 const gfx::Rect& clip, | 239 const gfx::Rect& clip, |
235 bool valid_for_tile_management) OVERRIDE; | 240 bool valid_for_tile_management) OVERRIDE; |
236 virtual void DidLoseOutputSurface() OVERRIDE; | 241 virtual void DidLoseOutputSurface() OVERRIDE; |
237 virtual void DidSwapBuffers() OVERRIDE; | 242 virtual void DidSwapBuffers() OVERRIDE; |
238 virtual void DidSwapBuffersComplete() OVERRIDE; | 243 virtual void DidSwapBuffersComplete() OVERRIDE; |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 int id_; | 665 int id_; |
661 | 666 |
662 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 667 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
663 | 668 |
664 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 669 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
665 }; | 670 }; |
666 | 671 |
667 } // namespace cc | 672 } // namespace cc |
668 | 673 |
669 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 674 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |