| 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/debug/latency_info.h" |
| 22 #include "cc/input/top_controls_state.h" |
| 22 #include "cc/layers/layer_lists.h" | 23 #include "cc/layers/layer_lists.h" |
| 23 #include "cc/output/output_surface.h" | 24 #include "cc/output/output_surface.h" |
| 24 #include "cc/scheduler/rate_limiter.h" | 25 #include "cc/scheduler/rate_limiter.h" |
| 25 #include "cc/trees/layer_tree_host_client.h" | 26 #include "cc/trees/layer_tree_host_client.h" |
| 26 #include "cc/trees/layer_tree_host_common.h" | 27 #include "cc/trees/layer_tree_host_common.h" |
| 27 #include "cc/trees/layer_tree_settings.h" | 28 #include "cc/trees/layer_tree_settings.h" |
| 28 #include "cc/trees/occlusion_tracker.h" | 29 #include "cc/trees/occlusion_tracker.h" |
| 29 #include "cc/trees/proxy.h" | 30 #include "cc/trees/proxy.h" |
| 30 #include "skia/ext/refptr.h" | 31 #include "skia/ext/refptr.h" |
| 31 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h" | 32 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 227 |
| 227 bool buffered_updates() const { | 228 bool buffered_updates() const { |
| 228 return settings_.max_partial_texture_updates != | 229 return settings_.max_partial_texture_updates != |
| 229 std::numeric_limits<size_t>::max(); | 230 std::numeric_limits<size_t>::max(); |
| 230 } | 231 } |
| 231 bool RequestPartialTextureUpdate(); | 232 bool RequestPartialTextureUpdate(); |
| 232 | 233 |
| 233 void SetDeviceScaleFactor(float device_scale_factor); | 234 void SetDeviceScaleFactor(float device_scale_factor); |
| 234 float device_scale_factor() const { return device_scale_factor_; } | 235 float device_scale_factor() const { return device_scale_factor_; } |
| 235 | 236 |
| 236 void UpdateTopControlsState(bool enable_hiding, | 237 void UpdateTopControlsState(TopControlsState constraints, |
| 237 bool enable_showing, | 238 TopControlsState current, |
| 238 bool animate); | 239 bool animate); |
| 239 | 240 |
| 240 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } | 241 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } |
| 241 | 242 |
| 242 Proxy* proxy() const { return proxy_.get(); } | 243 Proxy* proxy() const { return proxy_.get(); } |
| 243 | 244 |
| 244 AnimationRegistrar* animation_registrar() const { | 245 AnimationRegistrar* animation_registrar() const { |
| 245 return animation_registrar_.get(); | 246 return animation_registrar_.get(); |
| 246 } | 247 } |
| 247 | 248 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 bool in_paint_layer_contents_; | 346 bool in_paint_layer_contents_; |
| 346 | 347 |
| 347 LatencyInfo latency_info_; | 348 LatencyInfo latency_info_; |
| 348 | 349 |
| 349 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 350 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 350 }; | 351 }; |
| 351 | 352 |
| 352 } // namespace cc | 353 } // namespace cc |
| 353 | 354 |
| 354 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 355 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |