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 CCRenderPass_h | 5 #ifndef CCRenderPass_h |
6 #define CCRenderPass_h | 6 #define CCRenderPass_h |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "cc/hash_pair.h" | 9 #include "cc/hash_pair.h" |
10 #include "cc/scoped_ptr_hash_map.h" | 10 #include "cc/scoped_ptr_hash_map.h" |
11 #include "cc/scoped_ptr_vector.h" | 11 #include "cc/scoped_ptr_vector.h" |
12 #include "CCDrawQuad.h" | 12 #include "CCDrawQuad.h" |
13 #include "CCSharedQuadState.h" | 13 #include "CCSharedQuadState.h" |
14 #include "FloatRect.h" | 14 #include "FloatRect.h" |
15 #include "SkColor.h" | 15 #include "SkColor.h" |
16 #include <public/WebFilterOperations.h> | 16 #include <public/WebFilterOperations.h> |
17 #include <public/WebTransformationMatrix.h> | 17 #include <public/WebTransformationMatrix.h> |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
| 20 namespace IPC { |
| 21 template <class P> struct ParamTraits; |
| 22 }; |
| 23 |
20 namespace cc { | 24 namespace cc { |
21 | 25 |
22 class CCLayerImpl; | 26 class CCLayerImpl; |
23 template<typename LayerType, typename SurfaceType> | 27 template<typename LayerType, typename SurfaceType> |
24 class CCOcclusionTrackerBase; | 28 class CCOcclusionTrackerBase; |
25 class CCRenderSurface; | 29 class CCRenderSurface; |
26 | 30 |
27 struct CCAppendQuadsData; | 31 struct CCAppendQuadsData; |
28 | 32 |
29 typedef CCOcclusionTrackerBase<CCLayerImpl, CCRenderSurface> CCOcclusionTrackerI
mpl; | 33 typedef CCOcclusionTrackerBase<CCLayerImpl, CCRenderSurface> CCOcclusionTrackerI
mpl; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 void setFilters(const WebKit::WebFilterOperations& filters) { m_filters = fi
lters; } | 92 void setFilters(const WebKit::WebFilterOperations& filters) { m_filters = fi
lters; } |
89 | 93 |
90 const WebKit::WebFilterOperations& backgroundFilters() const { return m_back
groundFilters; } | 94 const WebKit::WebFilterOperations& backgroundFilters() const { return m_back
groundFilters; } |
91 void setBackgroundFilters(const WebKit::WebFilterOperations& filters) { m_ba
ckgroundFilters = filters; } | 95 void setBackgroundFilters(const WebKit::WebFilterOperations& filters) { m_ba
ckgroundFilters = filters; } |
92 | 96 |
93 bool hasTransparentBackground() const { return m_hasTransparentBackground; } | 97 bool hasTransparentBackground() const { return m_hasTransparentBackground; } |
94 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } | 98 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } |
95 | 99 |
96 bool hasOcclusionFromOutsideTargetSurface() const { return m_hasOcclusionFro
mOutsideTargetSurface; } | 100 bool hasOcclusionFromOutsideTargetSurface() const { return m_hasOcclusionFro
mOutsideTargetSurface; } |
97 void setHasOcclusionFromOutsideTargetSurface(bool hasOcclusionFromOutsideTar
getSurface) { m_hasOcclusionFromOutsideTargetSurface = hasOcclusionFromOutsideTa
rgetSurface; } | 101 void setHasOcclusionFromOutsideTargetSurface(bool hasOcclusionFromOutsideTar
getSurface) { m_hasOcclusionFromOutsideTargetSurface = hasOcclusionFromOutsideTa
rgetSurface; } |
| 102 const CCSharedQuadStateList& sharedQuadStateList() const { return m_sharedQu
adStateList; } |
98 protected: | 103 protected: |
| 104 friend struct IPC::ParamTraits<CCRenderPass>; |
99 CCRenderPass(Id, IntRect outputRect, const WebKit::WebTransformationMatrix&
transformToRootTarget); | 105 CCRenderPass(Id, IntRect outputRect, const WebKit::WebTransformationMatrix&
transformToRootTarget); |
100 | 106 |
101 Id m_id; | 107 Id m_id; |
102 CCQuadList m_quadList; | 108 CCQuadList m_quadList; |
103 CCSharedQuadStateList m_sharedQuadStateList; | 109 CCSharedQuadStateList m_sharedQuadStateList; |
104 WebKit::WebTransformationMatrix m_transformToRootTarget; | 110 WebKit::WebTransformationMatrix m_transformToRootTarget; |
105 IntRect m_outputRect; | 111 IntRect m_outputRect; |
106 FloatRect m_damageRect; | 112 FloatRect m_damageRect; |
107 bool m_hasTransparentBackground; | 113 bool m_hasTransparentBackground; |
108 bool m_hasOcclusionFromOutsideTargetSurface; | 114 bool m_hasOcclusionFromOutsideTargetSurface; |
(...skipping 22 matching lines...) Expand all Loading... |
131 #error define a hash function for your compiler | 137 #error define a hash function for your compiler |
132 #endif // COMPILER | 138 #endif // COMPILER |
133 } | 139 } |
134 | 140 |
135 namespace cc { | 141 namespace cc { |
136 typedef std::vector<CCRenderPass*> CCRenderPassList; | 142 typedef std::vector<CCRenderPass*> CCRenderPassList; |
137 typedef ScopedPtrHashMap<CCRenderPass::Id, CCRenderPass> CCRenderPassIdHashMap; | 143 typedef ScopedPtrHashMap<CCRenderPass::Id, CCRenderPass> CCRenderPassIdHashMap; |
138 } // namespace cc | 144 } // namespace cc |
139 | 145 |
140 #endif | 146 #endif |
OLD | NEW |