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