Chromium Code Reviews| 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 25 matching lines...) Expand all Loading... | |
| 36 class PaintTimeCounter; | 36 class PaintTimeCounter; |
| 37 class RenderPassDrawQuad; | 37 class RenderPassDrawQuad; |
| 38 class ResourceProvider; | 38 class ResourceProvider; |
| 39 class TopControlsManager; | 39 class TopControlsManager; |
| 40 struct RendererCapabilities; | 40 struct RendererCapabilities; |
| 41 struct RenderingStats; | 41 struct RenderingStats; |
| 42 | 42 |
| 43 // LayerTreeHost->Proxy callback interface. | 43 // LayerTreeHost->Proxy callback interface. |
| 44 class LayerTreeHostImplClient { | 44 class LayerTreeHostImplClient { |
| 45 public: | 45 public: |
| 46 virtual ~LayerTreeHostImplClient() { } | |
|
jamesr
2013/02/01 19:30:05
protected, please
| |
| 46 virtual void didLoseOutputSurfaceOnImplThread() = 0; | 47 virtual void didLoseOutputSurfaceOnImplThread() = 0; |
| 47 virtual void onSwapBuffersCompleteOnImplThread() = 0; | 48 virtual void onSwapBuffersCompleteOnImplThread() = 0; |
| 48 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) = 0; | 49 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) = 0; |
| 49 virtual void onCanDrawStateChanged(bool canDraw) = 0; | 50 virtual void onCanDrawStateChanged(bool canDraw) = 0; |
| 50 virtual void onHasPendingTreeStateChanged(bool hasPendingTree) = 0; | 51 virtual void onHasPendingTreeStateChanged(bool hasPendingTree) = 0; |
| 51 virtual void setNeedsRedrawOnImplThread() = 0; | 52 virtual void setNeedsRedrawOnImplThread() = 0; |
| 52 virtual void didSwapUseIncompleteTileOnImplThread() = 0; | 53 virtual void didSwapUseIncompleteTileOnImplThread() = 0; |
| 53 virtual void didUploadVisibleHighResolutionTileOnImplThread() = 0; | 54 virtual void didUploadVisibleHighResolutionTileOnImplThread() = 0; |
| 54 virtual void setNeedsCommitOnImplThread() = 0; | 55 virtual void setNeedsCommitOnImplThread() = 0; |
| 55 virtual void setNeedsManageTilesOnImplThread() = 0; | 56 virtual void setNeedsManageTilesOnImplThread() = 0; |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 85 virtual bool haveTouchEventHandlersAt(const gfx::Point&) OVERRIDE; | 86 virtual bool haveTouchEventHandlersAt(const gfx::Point&) OVERRIDE; |
| 86 | 87 |
| 87 // TopControlsManagerClient implementation. | 88 // TopControlsManagerClient implementation. |
| 88 virtual void setActiveTreeNeedsUpdateDrawProperties() OVERRIDE; | 89 virtual void setActiveTreeNeedsUpdateDrawProperties() OVERRIDE; |
| 89 virtual void setNeedsRedraw() OVERRIDE; | 90 virtual void setNeedsRedraw() OVERRIDE; |
| 90 virtual bool haveRootScrollLayer() const OVERRIDE; | 91 virtual bool haveRootScrollLayer() const OVERRIDE; |
| 91 virtual float rootScrollLayerTotalScrollY() const OVERRIDE; | 92 virtual float rootScrollLayerTotalScrollY() const OVERRIDE; |
| 92 | 93 |
| 93 struct CC_EXPORT FrameData : public RenderPassSink { | 94 struct CC_EXPORT FrameData : public RenderPassSink { |
| 94 FrameData(); | 95 FrameData(); |
| 95 ~FrameData(); | 96 virtual ~FrameData(); |
| 96 | 97 |
| 97 std::vector<gfx::Rect> occludingScreenSpaceRects; | 98 std::vector<gfx::Rect> occludingScreenSpaceRects; |
| 98 std::vector<gfx::Rect> nonOccludingScreenSpaceRects; | 99 std::vector<gfx::Rect> nonOccludingScreenSpaceRects; |
| 99 RenderPassList renderPasses; | 100 RenderPassList renderPasses; |
| 100 RenderPassIdHashMap renderPassesById; | 101 RenderPassIdHashMap renderPassesById; |
| 101 const LayerList* renderSurfaceLayerList; | 102 const LayerList* renderSurfaceLayerList; |
| 102 LayerList willDrawLayers; | 103 LayerList willDrawLayers; |
| 103 | 104 |
| 104 // RenderPassSink implementation. | 105 // RenderPassSink implementation. |
| 105 virtual void appendRenderPass(scoped_ptr<RenderPass>) OVERRIDE; | 106 virtual void appendRenderPass(scoped_ptr<RenderPass>) OVERRIDE; |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 359 base::TimeTicks m_currentFrameTime; | 360 base::TimeTicks m_currentFrameTime; |
| 360 | 361 |
| 361 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 362 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
| 362 | 363 |
| 363 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 364 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 364 }; | 365 }; |
| 365 | 366 |
| 366 } // namespace cc | 367 } // namespace cc |
| 367 | 368 |
| 368 #endif // CC_LAYER_TREE_HOST_IMPL_H_ | 369 #endif // CC_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |