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 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 bool buffered_updates() const { | 217 bool buffered_updates() const { |
218 return settings_.max_partial_texture_updates != | 218 return settings_.max_partial_texture_updates != |
219 std::numeric_limits<size_t>::max(); | 219 std::numeric_limits<size_t>::max(); |
220 } | 220 } |
221 bool RequestPartialTextureUpdate(); | 221 bool RequestPartialTextureUpdate(); |
222 | 222 |
223 void SetDeviceScaleFactor(float device_scale_factor); | 223 void SetDeviceScaleFactor(float device_scale_factor); |
224 float device_scale_factor() const { return device_scale_factor_; } | 224 float device_scale_factor() const { return device_scale_factor_; } |
225 | 225 |
226 void EnableHidingTopControls(bool enable); | 226 void EnableHidingTopControls(bool enable); |
| 227 void ShowTopControls(bool show); |
227 | 228 |
228 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } | 229 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } |
229 | 230 |
230 Proxy* proxy() const { return proxy_.get(); } | 231 Proxy* proxy() const { return proxy_.get(); } |
231 | 232 |
232 AnimationRegistrar* animation_registrar() const { | 233 AnimationRegistrar* animation_registrar() const { |
233 return animation_registrar_.get(); | 234 return animation_registrar_.get(); |
234 } | 235 } |
235 | 236 |
236 skia::RefPtr<SkPicture> CapturePicture(); | 237 skia::RefPtr<SkPicture> CapturePicture(); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 size_t partial_texture_update_requests_; | 326 size_t partial_texture_update_requests_; |
326 | 327 |
327 scoped_ptr<AnimationRegistrar> animation_registrar_; | 328 scoped_ptr<AnimationRegistrar> animation_registrar_; |
328 | 329 |
329 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 330 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
330 }; | 331 }; |
331 | 332 |
332 } // namespace cc | 333 } // namespace cc |
333 | 334 |
334 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 335 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |