| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 void setBackgroundColor(SkColor color) { m_backgroundColor = color; } | 184 void setBackgroundColor(SkColor color) { m_backgroundColor = color; } |
| 185 | 185 |
| 186 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } | 186 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } |
| 187 | 187 |
| 188 PrioritizedTextureManager* contentsTextureManager() const; | 188 PrioritizedTextureManager* contentsTextureManager() const; |
| 189 | 189 |
| 190 bool visible() const { return m_visible; } | 190 bool visible() const { return m_visible; } |
| 191 void setVisible(bool); | 191 void setVisible(bool); |
| 192 | 192 |
| 193 void startPageScaleAnimation(const IntSize& targetPosition, bool useAnchor,
float scale, base::TimeDelta duration); | 193 void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnchor, flo
at scale, base::TimeDelta duration); |
| 194 | 194 |
| 195 void applyScrollAndScale(const ScrollAndScaleSet&); | 195 void applyScrollAndScale(const ScrollAndScaleSet&); |
| 196 gfx::PointF adjustEventPointForPinchZoom(const gfx::PointF&) const; | 196 gfx::PointF adjustEventPointForPinchZoom(const gfx::PointF&) const; |
| 197 void setImplTransform(const WebKit::WebTransformationMatrix&); | 197 void setImplTransform(const WebKit::WebTransformationMatrix&); |
| 198 | 198 |
| 199 void startRateLimiter(WebKit::WebGraphicsContext3D*); | 199 void startRateLimiter(WebKit::WebGraphicsContext3D*); |
| 200 void stopRateLimiter(WebKit::WebGraphicsContext3D*); | 200 void stopRateLimiter(WebKit::WebGraphicsContext3D*); |
| 201 | 201 |
| 202 // RateLimitClient implementation | 202 // RateLimitClient implementation |
| 203 virtual void rateLimit() OVERRIDE; | 203 virtual void rateLimit() OVERRIDE; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 size_t m_partialTextureUpdateRequests; | 283 size_t m_partialTextureUpdateRequests; |
| 284 | 284 |
| 285 static bool s_needsFilterContext; | 285 static bool s_needsFilterContext; |
| 286 | 286 |
| 287 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 287 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 288 }; | 288 }; |
| 289 | 289 |
| 290 } // namespace cc | 290 } // namespace cc |
| 291 | 291 |
| 292 #endif // CC_LAYER_TREE_HOST_H_ | 292 #endif // CC_LAYER_TREE_HOST_H_ |
| OLD | NEW |