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