| 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_LAYER_TREE_HOST_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 class PaintTimeCounter; | 37 class PaintTimeCounter; |
| 38 class RenderPassDrawQuad; | 38 class RenderPassDrawQuad; |
| 39 class ResourceProvider; | 39 class ResourceProvider; |
| 40 class TopControlsManager; | 40 class TopControlsManager; |
| 41 struct RendererCapabilities; | 41 struct RendererCapabilities; |
| 42 struct RenderingStats; | 42 struct RenderingStats; |
| 43 | 43 |
| 44 // LayerTreeHost->Proxy callback interface. | 44 // LayerTreeHost->Proxy callback interface. |
| 45 class LayerTreeHostImplClient { | 45 class LayerTreeHostImplClient { |
| 46 public: | 46 public: |
| 47 virtual ~LayerTreeHostImplClient() { } |
| 47 virtual void didLoseOutputSurfaceOnImplThread() = 0; | 48 virtual void didLoseOutputSurfaceOnImplThread() = 0; |
| 48 virtual void onSwapBuffersCompleteOnImplThread() = 0; | 49 virtual void onSwapBuffersCompleteOnImplThread() = 0; |
| 49 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe
lta interval) = 0; | 50 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe
lta interval) = 0; |
| 50 virtual void onCanDrawStateChanged(bool canDraw) = 0; | 51 virtual void onCanDrawStateChanged(bool canDraw) = 0; |
| 51 virtual void onHasPendingTreeStateChanged(bool hasPendingTree) = 0; | 52 virtual void onHasPendingTreeStateChanged(bool hasPendingTree) = 0; |
| 52 virtual void setNeedsRedrawOnImplThread() = 0; | 53 virtual void setNeedsRedrawOnImplThread() = 0; |
| 53 virtual void didSwapUseIncompleteTileOnImplThread() = 0; | 54 virtual void didSwapUseIncompleteTileOnImplThread() = 0; |
| 54 virtual void didUploadVisibleHighResolutionTileOnImplThread() = 0; | 55 virtual void didUploadVisibleHighResolutionTileOnImplThread() = 0; |
| 55 virtual void setNeedsCommitOnImplThread() = 0; | 56 virtual void setNeedsCommitOnImplThread() = 0; |
| 56 virtual void setNeedsManageTilesOnImplThread() = 0; | 57 virtual void setNeedsManageTilesOnImplThread() = 0; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 86 virtual bool haveTouchEventHandlersAt(const gfx::Point&) OVERRIDE; | 87 virtual bool haveTouchEventHandlersAt(const gfx::Point&) OVERRIDE; |
| 87 | 88 |
| 88 // TopControlsManagerClient implementation. | 89 // TopControlsManagerClient implementation. |
| 89 virtual void setActiveTreeNeedsUpdateDrawProperties() OVERRIDE; | 90 virtual void setActiveTreeNeedsUpdateDrawProperties() OVERRIDE; |
| 90 virtual void setNeedsRedraw() OVERRIDE; | 91 virtual void setNeedsRedraw() OVERRIDE; |
| 91 virtual bool haveRootScrollLayer() const OVERRIDE; | 92 virtual bool haveRootScrollLayer() const OVERRIDE; |
| 92 virtual float rootScrollLayerTotalScrollY() const OVERRIDE; | 93 virtual float rootScrollLayerTotalScrollY() const OVERRIDE; |
| 93 | 94 |
| 94 struct CC_EXPORT FrameData : public RenderPassSink { | 95 struct CC_EXPORT FrameData : public RenderPassSink { |
| 95 FrameData(); | 96 FrameData(); |
| 96 ~FrameData(); | 97 virtual ~FrameData(); |
| 97 | 98 |
| 98 std::vector<gfx::Rect> occludingScreenSpaceRects; | 99 std::vector<gfx::Rect> occludingScreenSpaceRects; |
| 99 std::vector<gfx::Rect> nonOccludingScreenSpaceRects; | 100 std::vector<gfx::Rect> nonOccludingScreenSpaceRects; |
| 100 RenderPassList renderPasses; | 101 RenderPassList renderPasses; |
| 101 RenderPassIdHashMap renderPassesById; | 102 RenderPassIdHashMap renderPassesById; |
| 102 const LayerList* renderSurfaceLayerList; | 103 const LayerList* renderSurfaceLayerList; |
| 103 LayerList willDrawLayers; | 104 LayerList willDrawLayers; |
| 104 | 105 |
| 105 // RenderPassSink implementation. | 106 // RenderPassSink implementation. |
| 106 virtual void appendRenderPass(scoped_ptr<RenderPass>) OVERRIDE; | 107 virtual void appendRenderPass(scoped_ptr<RenderPass>) OVERRIDE; |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 base::TimeTicks m_currentFrameTime; | 369 base::TimeTicks m_currentFrameTime; |
| 369 | 370 |
| 370 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 371 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
| 371 | 372 |
| 372 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 373 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 373 }; | 374 }; |
| 374 | 375 |
| 375 } // namespace cc | 376 } // namespace cc |
| 376 | 377 |
| 377 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 378 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |