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 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 bool buffered_updates() const { | 218 bool buffered_updates() const { |
219 return settings_.max_partial_texture_updates != | 219 return settings_.max_partial_texture_updates != |
220 std::numeric_limits<size_t>::max(); | 220 std::numeric_limits<size_t>::max(); |
221 } | 221 } |
222 bool RequestPartialTextureUpdate(); | 222 bool RequestPartialTextureUpdate(); |
223 | 223 |
224 void SetDeviceScaleFactor(float device_scale_factor); | 224 void SetDeviceScaleFactor(float device_scale_factor); |
225 float device_scale_factor() const { return device_scale_factor_; } | 225 float device_scale_factor() const { return device_scale_factor_; } |
226 | 226 |
227 void EnableHidingTopControls(bool enable); | 227 void EnableHidingTopControls(bool enable); |
| 228 void ShowTopControls(bool show); |
228 | 229 |
229 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } | 230 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } |
230 | 231 |
231 Proxy* proxy() const { return proxy_.get(); } | 232 Proxy* proxy() const { return proxy_.get(); } |
232 | 233 |
233 AnimationRegistrar* animation_registrar() const { | 234 AnimationRegistrar* animation_registrar() const { |
234 return animation_registrar_.get(); | 235 return animation_registrar_.get(); |
235 } | 236 } |
236 | 237 |
237 skia::RefPtr<SkPicture> CapturePicture(); | 238 skia::RefPtr<SkPicture> CapturePicture(); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 base::TimeDelta duration; | 335 base::TimeDelta duration; |
335 }; | 336 }; |
336 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 337 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
337 | 338 |
338 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 339 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
339 }; | 340 }; |
340 | 341 |
341 } // namespace cc | 342 } // namespace cc |
342 | 343 |
343 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 344 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |