OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 CCRenderer_h | 5 #ifndef CCRenderer_h |
6 #define CCRenderer_h | 6 #define CCRenderer_h |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "CCLayerTreeHost.h" | 9 #include "CCLayerTreeHost.h" |
10 #include "CCRenderPass.h" | 10 #include "CCRenderPass.h" |
11 #include "FloatQuad.h" | 11 #include "FloatQuad.h" |
12 #include "IntRect.h" | 12 #include "IntRect.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 class CCScopedTexture; | 16 class CCScopedTexture; |
17 | 17 |
18 class CCRendererClient { | 18 class CCRendererClient { |
19 public: | 19 public: |
20 virtual const IntSize& deviceViewportSize() const = 0; | 20 virtual const IntSize& deviceViewportSize() const = 0; |
21 virtual const CCLayerTreeSettings& settings() const = 0; | 21 virtual const CCLayerTreeSettings& settings() const = 0; |
22 virtual void didLoseContext() = 0; | 22 virtual void didLoseContext() = 0; |
23 virtual void onSwapBuffersComplete() = 0; | 23 virtual void onSwapBuffersComplete() = 0; |
| 24 virtual void onUpdateVSyncTime(int64 time) = 0; |
24 virtual void releaseContentsTextures() = 0; | 25 virtual void releaseContentsTextures() = 0; |
25 virtual void setFullRootLayerDamage() = 0; | 26 virtual void setFullRootLayerDamage() = 0; |
26 virtual void setMemoryAllocationLimitBytes(size_t) = 0; | 27 virtual void setMemoryAllocationLimitBytes(size_t) = 0; |
27 protected: | 28 protected: |
28 virtual ~CCRendererClient() { } | 29 virtual ~CCRendererClient() { } |
29 }; | 30 }; |
30 | 31 |
31 class CCRenderer { | 32 class CCRenderer { |
32 public: | 33 public: |
33 // This enum defines the various resource pools for the CCResourceProvider | 34 // This enum defines the various resource pools for the CCResourceProvider |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 } | 75 } |
75 | 76 |
76 CCRendererClient* m_client; | 77 CCRendererClient* m_client; |
77 | 78 |
78 DISALLOW_COPY_AND_ASSIGN(CCRenderer); | 79 DISALLOW_COPY_AND_ASSIGN(CCRenderer); |
79 }; | 80 }; |
80 | 81 |
81 } | 82 } |
82 | 83 |
83 #endif // CCRenderer_h | 84 #endif // CCRenderer_h |
OLD | NEW |