| 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_TREES_LAYER_TREE_HOST_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/cancelable_callback.h" | 12 #include "base/cancelable_callback.h" |
| 13 #include "base/hash_tables.h" | 13 #include "base/hash_tables.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/time.h" | 17 #include "base/time.h" |
| 18 #include "cc/animation/animation_events.h" | 18 #include "cc/animation/animation_events.h" |
| 19 #include "cc/base/cc_export.h" | 19 #include "cc/base/cc_export.h" |
| 20 #include "cc/base/scoped_ptr_vector.h" | 20 #include "cc/base/scoped_ptr_vector.h" |
| 21 #include "cc/debug/latency_info.h" |
| 21 #include "cc/layers/layer_lists.h" | 22 #include "cc/layers/layer_lists.h" |
| 22 #include "cc/output/output_surface.h" | 23 #include "cc/output/output_surface.h" |
| 23 #include "cc/scheduler/rate_limiter.h" | 24 #include "cc/scheduler/rate_limiter.h" |
| 24 #include "cc/trees/layer_tree_host_client.h" | 25 #include "cc/trees/layer_tree_host_client.h" |
| 25 #include "cc/trees/layer_tree_host_common.h" | 26 #include "cc/trees/layer_tree_host_common.h" |
| 26 #include "cc/trees/layer_tree_settings.h" | 27 #include "cc/trees/layer_tree_settings.h" |
| 27 #include "cc/trees/occlusion_tracker.h" | 28 #include "cc/trees/occlusion_tracker.h" |
| 28 #include "cc/trees/proxy.h" | 29 #include "cc/trees/proxy.h" |
| 29 #include "skia/ext/refptr.h" | 30 #include "skia/ext/refptr.h" |
| 30 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h" | 31 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h" |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 bool visible() const { return visible_; } | 205 bool visible() const { return visible_; } |
| 205 | 206 |
| 206 void StartPageScaleAnimation(gfx::Vector2d target_offset, | 207 void StartPageScaleAnimation(gfx::Vector2d target_offset, |
| 207 bool use_anchor, | 208 bool use_anchor, |
| 208 float scale, | 209 float scale, |
| 209 base::TimeDelta duration); | 210 base::TimeDelta duration); |
| 210 | 211 |
| 211 void ApplyScrollAndScale(const ScrollAndScaleSet& info); | 212 void ApplyScrollAndScale(const ScrollAndScaleSet& info); |
| 212 | 213 |
| 213 void SetImplTransform(const gfx::Transform& transform); | 214 void SetImplTransform(const gfx::Transform& transform); |
| 215 void SetLatencyInfo(const LatencyInfo& latency_info); |
| 214 | 216 |
| 215 void StartRateLimiter(WebKit::WebGraphicsContext3D* context3d); | 217 void StartRateLimiter(WebKit::WebGraphicsContext3D* context3d); |
| 216 void StopRateLimiter(WebKit::WebGraphicsContext3D* context3d); | 218 void StopRateLimiter(WebKit::WebGraphicsContext3D* context3d); |
| 217 | 219 |
| 218 // RateLimiterClient implementation. | 220 // RateLimiterClient implementation. |
| 219 virtual void RateLimit() OVERRIDE; | 221 virtual void RateLimit() OVERRIDE; |
| 220 | 222 |
| 221 bool buffered_updates() const { | 223 bool buffered_updates() const { |
| 222 return settings_.max_partial_texture_updates != | 224 return settings_.max_partial_texture_updates != |
| 223 std::numeric_limits<size_t>::max(); | 225 std::numeric_limits<size_t>::max(); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 struct PendingPageScaleAnimation { | 334 struct PendingPageScaleAnimation { |
| 333 gfx::Vector2d target_offset; | 335 gfx::Vector2d target_offset; |
| 334 bool use_anchor; | 336 bool use_anchor; |
| 335 float scale; | 337 float scale; |
| 336 base::TimeDelta duration; | 338 base::TimeDelta duration; |
| 337 }; | 339 }; |
| 338 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 340 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 339 | 341 |
| 340 bool in_paint_layer_contents_; | 342 bool in_paint_layer_contents_; |
| 341 | 343 |
| 344 LatencyInfo latency_info_; |
| 345 |
| 342 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 346 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 343 }; | 347 }; |
| 344 | 348 |
| 345 } // namespace cc | 349 } // namespace cc |
| 346 | 350 |
| 347 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 351 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |