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