| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 float scale, | 193 float scale, |
| 194 base::TimeDelta duration); | 194 base::TimeDelta duration); |
| 195 | 195 |
| 196 void ApplyScrollAndScale(const ScrollAndScaleSet& info); | 196 void ApplyScrollAndScale(const ScrollAndScaleSet& info); |
| 197 | 197 |
| 198 void SetImplTransform(const gfx::Transform& transform); | 198 void SetImplTransform(const gfx::Transform& transform); |
| 199 | 199 |
| 200 void StartRateLimiter(WebKit::WebGraphicsContext3D* context3d); | 200 void StartRateLimiter(WebKit::WebGraphicsContext3D* context3d); |
| 201 void StopRateLimiter(WebKit::WebGraphicsContext3D* context3d); | 201 void StopRateLimiter(WebKit::WebGraphicsContext3D* context3d); |
| 202 | 202 |
| 203 // RateLimitClient implementation | 203 // RateLimiterClient implementation. |
| 204 virtual void rateLimit() OVERRIDE; | 204 virtual void RateLimit() OVERRIDE; |
| 205 | 205 |
| 206 bool buffered_updates() const { | 206 bool buffered_updates() const { |
| 207 return settings_.maxPartialTextureUpdates != | 207 return settings_.maxPartialTextureUpdates != |
| 208 std::numeric_limits<size_t>::max(); | 208 std::numeric_limits<size_t>::max(); |
| 209 } | 209 } |
| 210 bool RequestPartialTextureUpdate(); | 210 bool RequestPartialTextureUpdate(); |
| 211 | 211 |
| 212 void SetDeviceScaleFactor(float device_scale_factor); | 212 void SetDeviceScaleFactor(float device_scale_factor); |
| 213 float device_scale_factor() const { return device_scale_factor_; } | 213 float device_scale_factor() const { return device_scale_factor_; } |
| 214 | 214 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 size_t partial_texture_update_requests_; | 310 size_t partial_texture_update_requests_; |
| 311 | 311 |
| 312 scoped_ptr<AnimationRegistrar> animation_registrar_; | 312 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 313 | 313 |
| 314 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 314 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 315 }; | 315 }; |
| 316 | 316 |
| 317 } // namespace cc | 317 } // namespace cc |
| 318 | 318 |
| 319 #endif // CC_LAYER_TREE_HOST_H_ | 319 #endif // CC_LAYER_TREE_HOST_H_ |
| OLD | NEW |