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 | |
6 #ifndef CCRenderSurface_h | 5 #ifndef CCRenderSurface_h |
7 #define CCRenderSurface_h | 6 #define CCRenderSurface_h |
8 | 7 |
9 #if USE(ACCELERATED_COMPOSITING) | 8 #if USE(ACCELERATED_COMPOSITING) |
10 | 9 |
| 10 #include "base/basictypes.h" |
11 #include "CCRenderPass.h" | 11 #include "CCRenderPass.h" |
12 #include "CCSharedQuadState.h" | 12 #include "CCSharedQuadState.h" |
13 #include "FloatRect.h" | 13 #include "FloatRect.h" |
14 #include "IntRect.h" | 14 #include "IntRect.h" |
15 #include <public/WebTransformationMatrix.h> | 15 #include <public/WebTransformationMatrix.h> |
16 #include <wtf/Noncopyable.h> | |
17 | 16 |
18 namespace cc { | 17 namespace cc { |
19 | 18 |
20 class CCDamageTracker; | 19 class CCDamageTracker; |
21 class CCDelegatedRendererLayerImpl; | 20 class CCDelegatedRendererLayerImpl; |
22 class CCQuadSink; | 21 class CCQuadSink; |
23 class CCRenderPassSink; | 22 class CCRenderPassSink; |
24 class CCLayerImpl; | 23 class CCLayerImpl; |
25 | 24 |
26 struct CCAppendQuadsData; | 25 struct CCAppendQuadsData; |
27 | 26 |
28 class CCRenderSurface { | 27 class CCRenderSurface { |
29 WTF_MAKE_NONCOPYABLE(CCRenderSurface); | |
30 public: | 28 public: |
31 explicit CCRenderSurface(CCLayerImpl*); | 29 explicit CCRenderSurface(CCLayerImpl*); |
32 virtual ~CCRenderSurface(); | 30 virtual ~CCRenderSurface(); |
33 | 31 |
34 std::string name() const; | 32 std::string name() const; |
35 void dumpSurface(std::string*, int indent) const; | 33 void dumpSurface(std::string*, int indent) const; |
36 | 34 |
37 FloatPoint contentRectCenter() const { return FloatRect(m_contentRect).cente
r(); } | 35 FloatPoint contentRectCenter() const { return FloatRect(m_contentRect).cente
r(); } |
38 | 36 |
39 // Returns the rect that encloses the RenderSurface including any reflection
. | 37 // Returns the rect that encloses the RenderSurface including any reflection
. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // to move pixels within the surface (such as with a blur). This can point t
o itself. | 114 // to move pixels within the surface (such as with a blur). This can point t
o itself. |
117 CCRenderSurface* m_nearestAncestorThatMovesPixels; | 115 CCRenderSurface* m_nearestAncestorThatMovesPixels; |
118 | 116 |
119 OwnPtr<CCDamageTracker> m_damageTracker; | 117 OwnPtr<CCDamageTracker> m_damageTracker; |
120 | 118 |
121 // For CCLayerIteratorActions | 119 // For CCLayerIteratorActions |
122 int m_targetRenderSurfaceLayerIndexHistory; | 120 int m_targetRenderSurfaceLayerIndexHistory; |
123 int m_currentLayerIndexHistory; | 121 int m_currentLayerIndexHistory; |
124 | 122 |
125 friend struct CCLayerIteratorActions; | 123 friend struct CCLayerIteratorActions; |
| 124 |
| 125 DISALLOW_COPY_AND_ASSIGN(CCRenderSurface); |
126 }; | 126 }; |
127 | 127 |
128 } | 128 } |
129 #endif // USE(ACCELERATED_COMPOSITING) | 129 #endif // USE(ACCELERATED_COMPOSITING) |
130 | 130 |
131 #endif | 131 #endif |
OLD | NEW |