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