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 CCLayerTreeHost_h | 5 #ifndef CCLayerTreeHost_h |
6 #define CCLayerTreeHost_h | 6 #define CCLayerTreeHost_h |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "cc/own_ptr_vector.h" | 9 #include "cc/own_ptr_vector.h" |
10 #include "CCAnimationEvents.h" | 10 #include "CCAnimationEvents.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // Returns true if this function had to unlink any backings from their ownin
g texture when | 183 // Returns true if this function had to unlink any backings from their ownin
g texture when |
184 // destroying them. If this was the case, the impl layer tree may contain in
valid resources. | 184 // destroying them. If this was the case, the impl layer tree may contain in
valid resources. |
185 bool deleteEvictedContentTexturesBackings(); | 185 bool deleteEvictedContentTexturesBackings(); |
186 | 186 |
187 bool visible() const { return m_visible; } | 187 bool visible() const { return m_visible; } |
188 void setVisible(bool); | 188 void setVisible(bool); |
189 | 189 |
190 void startPageScaleAnimation(const IntSize& targetPosition, bool useAnchor,
float scale, double durationSec); | 190 void startPageScaleAnimation(const IntSize& targetPosition, bool useAnchor,
float scale, double durationSec); |
191 | 191 |
192 void applyScrollAndScale(const CCScrollAndScaleSet&); | 192 void applyScrollAndScale(const CCScrollAndScaleSet&); |
| 193 void setImplTransform(const WebKit::WebTransformationMatrix&); |
193 | 194 |
194 void startRateLimiter(WebKit::WebGraphicsContext3D*); | 195 void startRateLimiter(WebKit::WebGraphicsContext3D*); |
195 void stopRateLimiter(WebKit::WebGraphicsContext3D*); | 196 void stopRateLimiter(WebKit::WebGraphicsContext3D*); |
196 | 197 |
197 // RateLimitClient implementation | 198 // RateLimitClient implementation |
198 virtual void rateLimit() OVERRIDE; | 199 virtual void rateLimit() OVERRIDE; |
199 | 200 |
200 bool bufferedUpdates(); | 201 bool bufferedUpdates(); |
201 bool requestPartialTextureUpdate(); | 202 bool requestPartialTextureUpdate(); |
202 void deleteTextureAfterCommit(PassOwnPtr<CCPrioritizedTexture>); | 203 void deleteTextureAfterCommit(PassOwnPtr<CCPrioritizedTexture>); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 IntSize m_deviceViewportSize; | 260 IntSize m_deviceViewportSize; |
260 float m_deviceScaleFactor; | 261 float m_deviceScaleFactor; |
261 | 262 |
262 bool m_visible; | 263 bool m_visible; |
263 | 264 |
264 typedef HashMap<WebKit::WebGraphicsContext3D*, RefPtr<RateLimiter> > RateLim
iterMap; | 265 typedef HashMap<WebKit::WebGraphicsContext3D*, RefPtr<RateLimiter> > RateLim
iterMap; |
265 RateLimiterMap m_rateLimiters; | 266 RateLimiterMap m_rateLimiters; |
266 | 267 |
267 float m_pageScaleFactor; | 268 float m_pageScaleFactor; |
268 float m_minPageScaleFactor, m_maxPageScaleFactor; | 269 float m_minPageScaleFactor, m_maxPageScaleFactor; |
| 270 WebKit::WebTransformationMatrix m_implTransform; |
269 bool m_triggerIdleUpdates; | 271 bool m_triggerIdleUpdates; |
270 | 272 |
271 SkColor m_backgroundColor; | 273 SkColor m_backgroundColor; |
272 bool m_hasTransparentBackground; | 274 bool m_hasTransparentBackground; |
273 | 275 |
274 typedef OwnPtrVector<CCPrioritizedTexture> TextureList; | 276 typedef OwnPtrVector<CCPrioritizedTexture> TextureList; |
275 TextureList m_deleteTextureAfterCommitList; | 277 TextureList m_deleteTextureAfterCommitList; |
276 size_t m_partialTextureUpdateRequests; | 278 size_t m_partialTextureUpdateRequests; |
277 | 279 |
278 static bool s_needsFilterContext; | 280 static bool s_needsFilterContext; |
279 | 281 |
280 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHost); | 282 DISALLOW_COPY_AND_ASSIGN(CCLayerTreeHost); |
281 }; | 283 }; |
282 | 284 |
283 } | 285 } |
284 | 286 |
285 #endif | 287 #endif |
OLD | NEW |