| 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 "CCRenderPass.h" |
| 11 #include "CCSharedQuadState.h" | 12 #include "CCSharedQuadState.h" |
| 12 #include "FloatRect.h" | 13 #include "FloatRect.h" |
| 13 #include "IntRect.h" | 14 #include "IntRect.h" |
| 14 #include <public/WebTransformationMatrix.h> | 15 #include <public/WebTransformationMatrix.h> |
| 15 #include <wtf/Noncopyable.h> | 16 #include <wtf/Noncopyable.h> |
| 16 #include <wtf/text/WTFString.h> | 17 #include <wtf/text/WTFString.h> |
| 17 | 18 |
| 18 namespace WebCore { | 19 namespace WebCore { |
| 19 | 20 |
| 20 class CCDamageTracker; | 21 class CCDamageTracker; |
| 21 class CCQuadSink; | 22 class CCQuadSink; |
| 22 class CCRenderPass; | |
| 23 class CCRenderPassSink; | 23 class CCRenderPassSink; |
| 24 class CCLayerImpl; | 24 class CCLayerImpl; |
| 25 class TextStream; | 25 class TextStream; |
| 26 | 26 |
| 27 struct CCAppendQuadsData; | 27 struct CCAppendQuadsData; |
| 28 | 28 |
| 29 class CCRenderSurface { | 29 class CCRenderSurface { |
| 30 WTF_MAKE_NONCOPYABLE(CCRenderSurface); | 30 WTF_MAKE_NONCOPYABLE(CCRenderSurface); |
| 31 public: | 31 public: |
| 32 explicit CCRenderSurface(CCLayerImpl*); | 32 explicit CCRenderSurface(CCLayerImpl*); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 Vector<CCLayerImpl*>& layerList() { return m_layerList; } | 78 Vector<CCLayerImpl*>& layerList() { return m_layerList; } |
| 79 | 79 |
| 80 int owningLayerId() const; | 80 int owningLayerId() const; |
| 81 | 81 |
| 82 void resetPropertyChangedFlag() { m_surfacePropertyChanged = false; } | 82 void resetPropertyChangedFlag() { m_surfacePropertyChanged = false; } |
| 83 bool surfacePropertyChanged() const; | 83 bool surfacePropertyChanged() const; |
| 84 bool surfacePropertyChangedOnlyFromDescendant() const; | 84 bool surfacePropertyChangedOnlyFromDescendant() const; |
| 85 | 85 |
| 86 CCDamageTracker* damageTracker() const { return m_damageTracker.get(); } | 86 CCDamageTracker* damageTracker() const { return m_damageTracker.get(); } |
| 87 | 87 |
| 88 CCRenderPass::Id renderPassId(); |
| 89 |
| 88 void appendRenderPasses(CCRenderPassSink&); | 90 void appendRenderPasses(CCRenderPassSink&); |
| 89 void appendQuads(CCQuadSink&, CCAppendQuadsData&, bool forReplica, int rende
rPassId); | 91 void appendQuads(CCQuadSink&, CCAppendQuadsData&, bool forReplica, CCRenderP
ass::Id renderPassId); |
| 90 | 92 |
| 91 private: | 93 private: |
| 92 CCLayerImpl* m_owningLayer; | 94 CCLayerImpl* m_owningLayer; |
| 93 | 95 |
| 94 // Uses this surface's space. | 96 // Uses this surface's space. |
| 95 IntRect m_contentRect; | 97 IntRect m_contentRect; |
| 96 bool m_surfacePropertyChanged; | 98 bool m_surfacePropertyChanged; |
| 97 | 99 |
| 98 float m_drawOpacity; | 100 float m_drawOpacity; |
| 99 bool m_drawOpacityIsAnimating; | 101 bool m_drawOpacityIsAnimating; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 119 int m_targetRenderSurfaceLayerIndexHistory; | 121 int m_targetRenderSurfaceLayerIndexHistory; |
| 120 int m_currentLayerIndexHistory; | 122 int m_currentLayerIndexHistory; |
| 121 | 123 |
| 122 friend struct CCLayerIteratorActions; | 124 friend struct CCLayerIteratorActions; |
| 123 }; | 125 }; |
| 124 | 126 |
| 125 } | 127 } |
| 126 #endif // USE(ACCELERATED_COMPOSITING) | 128 #endif // USE(ACCELERATED_COMPOSITING) |
| 127 | 129 |
| 128 #endif | 130 #endif |
| OLD | NEW |