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 CC_LAYER_TREE_HOST_H_ | 5 #ifndef CC_LAYER_TREE_HOST_H_ |
6 #define CC_LAYER_TREE_HOST_H_ | 6 #define CC_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 void setVisible(bool); | 199 void setVisible(bool); |
200 | 200 |
201 void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnchor, flo
at scale, base::TimeDelta duration); | 201 void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnchor, flo
at scale, base::TimeDelta duration); |
202 | 202 |
203 void applyScrollAndScale(const ScrollAndScaleSet&); | 203 void applyScrollAndScale(const ScrollAndScaleSet&); |
204 // This function converts event coordinates when the deviceViewport is zoome
d. | 204 // This function converts event coordinates when the deviceViewport is zoome
d. |
205 // Coordinates are transformed from logical pixels in the zoomed viewport to | 205 // Coordinates are transformed from logical pixels in the zoomed viewport to |
206 // logical pixels in the un-zoomed viewport, the latter being the coordinate
s | 206 // logical pixels in the un-zoomed viewport, the latter being the coordinate
s |
207 // required for hit-testing. | 207 // required for hit-testing. |
208 gfx::PointF adjustEventPointForPinchZoom(const gfx::PointF& zoomedViewportPo
int) const; | 208 gfx::PointF adjustEventPointForPinchZoom(const gfx::PointF& zoomedViewportPo
int) const; |
209 void setImplTransform(const WebKit::WebTransformationMatrix&); | 209 void setImplTransform(const gfx::Transform&); |
210 | 210 |
211 void startRateLimiter(WebKit::WebGraphicsContext3D*); | 211 void startRateLimiter(WebKit::WebGraphicsContext3D*); |
212 void stopRateLimiter(WebKit::WebGraphicsContext3D*); | 212 void stopRateLimiter(WebKit::WebGraphicsContext3D*); |
213 | 213 |
214 // RateLimitClient implementation | 214 // RateLimitClient implementation |
215 virtual void rateLimit() OVERRIDE; | 215 virtual void rateLimit() OVERRIDE; |
216 | 216 |
217 bool bufferedUpdates(); | 217 bool bufferedUpdates(); |
218 bool requestPartialTextureUpdate(); | 218 bool requestPartialTextureUpdate(); |
219 | 219 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 gfx::Size m_deviceViewportSize; | 282 gfx::Size m_deviceViewportSize; |
283 float m_deviceScaleFactor; | 283 float m_deviceScaleFactor; |
284 | 284 |
285 bool m_visible; | 285 bool m_visible; |
286 | 286 |
287 typedef base::hash_map<WebKit::WebGraphicsContext3D*, scoped_refptr<RateLimi
ter> > RateLimiterMap; | 287 typedef base::hash_map<WebKit::WebGraphicsContext3D*, scoped_refptr<RateLimi
ter> > RateLimiterMap; |
288 RateLimiterMap m_rateLimiters; | 288 RateLimiterMap m_rateLimiters; |
289 | 289 |
290 float m_pageScaleFactor; | 290 float m_pageScaleFactor; |
291 float m_minPageScaleFactor, m_maxPageScaleFactor; | 291 float m_minPageScaleFactor, m_maxPageScaleFactor; |
292 WebKit::WebTransformationMatrix m_implTransform; | 292 gfx::Transform m_implTransform; |
293 bool m_triggerIdleUpdates; | 293 bool m_triggerIdleUpdates; |
294 | 294 |
295 SkColor m_backgroundColor; | 295 SkColor m_backgroundColor; |
296 bool m_hasTransparentBackground; | 296 bool m_hasTransparentBackground; |
297 | 297 |
298 typedef ScopedPtrVector<PrioritizedResource> TextureList; | 298 typedef ScopedPtrVector<PrioritizedResource> TextureList; |
299 size_t m_partialTextureUpdateRequests; | 299 size_t m_partialTextureUpdateRequests; |
300 | 300 |
301 static bool s_needsFilterContext; | 301 static bool s_needsFilterContext; |
302 | 302 |
303 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 303 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
304 }; | 304 }; |
305 | 305 |
306 } // namespace cc | 306 } // namespace cc |
307 | 307 |
308 #endif // CC_LAYER_TREE_HOST_H_ | 308 #endif // CC_LAYER_TREE_HOST_H_ |
OLD | NEW |