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 | 5 |
6 #ifndef CCRenderSurface_h | 6 #ifndef CCRenderSurface_h |
7 #define CCRenderSurface_h | 7 #define CCRenderSurface_h |
8 | 8 |
9 #if USE(ACCELERATED_COMPOSITING) | 9 #if USE(ACCELERATED_COMPOSITING) |
10 | 10 |
11 #include "CCSharedQuadState.h" | 11 #include "CCSharedQuadState.h" |
12 #include "FloatRect.h" | 12 #include "FloatRect.h" |
13 #include "IntRect.h" | 13 #include "IntRect.h" |
14 #include <public/WebTransformationMatrix.h> | 14 #include <public/WebTransformationMatrix.h> |
15 #include <wtf/Noncopyable.h> | 15 #include <wtf/Noncopyable.h> |
16 #include <wtf/text/WTFString.h> | 16 #include <wtf/text/WTFString.h> |
17 | 17 |
18 namespace WebCore { | 18 namespace WebCore { |
19 | 19 |
20 class CCDamageTracker; | 20 class CCDamageTracker; |
21 class CCQuadSink; | 21 class CCQuadSink; |
22 class CCRenderPass; | 22 class CCRenderPass; |
| 23 class CCRenderPassSink; |
23 class CCLayerImpl; | 24 class CCLayerImpl; |
24 class TextStream; | 25 class TextStream; |
25 | 26 |
26 class CCRenderSurface { | 27 class CCRenderSurface { |
27 WTF_MAKE_NONCOPYABLE(CCRenderSurface); | 28 WTF_MAKE_NONCOPYABLE(CCRenderSurface); |
28 public: | 29 public: |
29 explicit CCRenderSurface(CCLayerImpl*); | 30 explicit CCRenderSurface(CCLayerImpl*); |
30 virtual ~CCRenderSurface(); | 31 virtual ~CCRenderSurface(); |
31 | 32 |
32 String name() const; | 33 String name() const; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 Vector<CCLayerImpl*>& layerList() { return m_layerList; } | 76 Vector<CCLayerImpl*>& layerList() { return m_layerList; } |
76 | 77 |
77 int owningLayerId() const; | 78 int owningLayerId() const; |
78 | 79 |
79 void resetPropertyChangedFlag() { m_surfacePropertyChanged = false; } | 80 void resetPropertyChangedFlag() { m_surfacePropertyChanged = false; } |
80 bool surfacePropertyChanged() const; | 81 bool surfacePropertyChanged() const; |
81 bool surfacePropertyChangedOnlyFromDescendant() const; | 82 bool surfacePropertyChangedOnlyFromDescendant() const; |
82 | 83 |
83 CCDamageTracker* damageTracker() const { return m_damageTracker.get(); } | 84 CCDamageTracker* damageTracker() const { return m_damageTracker.get(); } |
84 | 85 |
| 86 void appendRenderPasses(CCRenderPassSink&); |
85 void appendQuads(CCQuadSink&, bool forReplica, int renderPassId); | 87 void appendQuads(CCQuadSink&, bool forReplica, int renderPassId); |
86 | 88 |
87 private: | 89 private: |
88 CCLayerImpl* m_owningLayer; | 90 CCLayerImpl* m_owningLayer; |
89 | 91 |
90 // Uses this surface's space. | 92 // Uses this surface's space. |
91 IntRect m_contentRect; | 93 IntRect m_contentRect; |
92 bool m_surfacePropertyChanged; | 94 bool m_surfacePropertyChanged; |
93 | 95 |
94 float m_drawOpacity; | 96 float m_drawOpacity; |
(...skipping 20 matching lines...) Expand all Loading... |
115 int m_targetRenderSurfaceLayerIndexHistory; | 117 int m_targetRenderSurfaceLayerIndexHistory; |
116 int m_currentLayerIndexHistory; | 118 int m_currentLayerIndexHistory; |
117 | 119 |
118 friend struct CCLayerIteratorActions; | 120 friend struct CCLayerIteratorActions; |
119 }; | 121 }; |
120 | 122 |
121 } | 123 } |
122 #endif // USE(ACCELERATED_COMPOSITING) | 124 #endif // USE(ACCELERATED_COMPOSITING) |
123 | 125 |
124 #endif | 126 #endif |
OLD | NEW |