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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 | 318 |
319 int scroll_layer_id_when_mouse_over_scrollbar() const { | 319 int scroll_layer_id_when_mouse_over_scrollbar() const { |
320 return scroll_layer_id_when_mouse_over_scrollbar_; | 320 return scroll_layer_id_when_mouse_over_scrollbar_; |
321 } | 321 } |
322 bool scroll_affects_scroll_handler() const { | 322 bool scroll_affects_scroll_handler() const { |
323 return scroll_affects_scroll_handler_; | 323 return scroll_affects_scroll_handler_; |
324 } | 324 } |
325 void QueueSwapPromiseForMainThreadScrollUpdate( | 325 void QueueSwapPromiseForMainThreadScrollUpdate( |
326 scoped_ptr<SwapPromise> swap_promise); | 326 scoped_ptr<SwapPromise> swap_promise); |
327 | 327 |
328 bool IsCurrentlyScrolling() const; | 328 bool IsActivelyScrolling() const; |
329 | 329 |
330 virtual void SetVisible(bool visible); | 330 virtual void SetVisible(bool visible); |
331 bool visible() const { return visible_; } | 331 bool visible() const { return visible_; } |
332 | 332 |
333 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } | 333 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } |
334 void SetNeedsRedraw(); | 334 void SetNeedsRedraw(); |
335 | 335 |
336 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; | 336 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; |
337 | 337 |
338 size_t memory_allocation_limit_bytes() const; | 338 size_t memory_allocation_limit_bytes() const; |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 710 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
711 | 711 |
712 bool requires_high_res_to_draw_; | 712 bool requires_high_res_to_draw_; |
713 | 713 |
714 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 714 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
715 }; | 715 }; |
716 | 716 |
717 } // namespace cc | 717 } // namespace cc |
718 | 718 |
719 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 719 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |