| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 242 |
| 243 // TileManagerClient implementation. | 243 // TileManagerClient implementation. |
| 244 void NotifyReadyToActivate() override; | 244 void NotifyReadyToActivate() override; |
| 245 void NotifyReadyToDraw() override; | 245 void NotifyReadyToDraw() override; |
| 246 void NotifyTileStateChanged(const Tile* tile) override; | 246 void NotifyTileStateChanged(const Tile* tile) override; |
| 247 scoped_ptr<RasterTilePriorityQueue> BuildRasterQueue( | 247 scoped_ptr<RasterTilePriorityQueue> BuildRasterQueue( |
| 248 TreePriority tree_priority, | 248 TreePriority tree_priority, |
| 249 RasterTilePriorityQueue::Type type) override; | 249 RasterTilePriorityQueue::Type type) override; |
| 250 scoped_ptr<EvictionTilePriorityQueue> BuildEvictionQueue( | 250 scoped_ptr<EvictionTilePriorityQueue> BuildEvictionQueue( |
| 251 TreePriority tree_priority) override; | 251 TreePriority tree_priority) override; |
| 252 void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override; |
| 252 | 253 |
| 253 // Returns existing picture layers. | 254 // Returns existing picture layers. |
| 254 // TODO(vmpstr): Remove this, it's only used in tests. | 255 // TODO(vmpstr): Remove this, it's only used in tests. |
| 255 const std::vector<PictureLayerImpl*>& GetPictureLayers() const; | 256 const std::vector<PictureLayerImpl*>& GetPictureLayers() const; |
| 256 | 257 |
| 257 // ScrollbarAnimationControllerClient implementation. | 258 // ScrollbarAnimationControllerClient implementation. |
| 258 void PostDelayedScrollbarFade(const base::Closure& start_fade, | 259 void PostDelayedScrollbarFade(const base::Closure& start_fade, |
| 259 base::TimeDelta delay) override; | 260 base::TimeDelta delay) override; |
| 260 void SetNeedsScrollbarAnimationFrame() override; | 261 void SetNeedsScrollbarAnimationFrame() override; |
| 261 | 262 |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 SharedBitmapManager* shared_bitmap_manager_; | 722 SharedBitmapManager* shared_bitmap_manager_; |
| 722 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; | 723 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
| 723 int id_; | 724 int id_; |
| 724 | 725 |
| 725 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 726 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 726 | 727 |
| 727 std::vector<PictureLayerImpl*> picture_layers_; | 728 std::vector<PictureLayerImpl*> picture_layers_; |
| 728 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 729 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
| 729 | 730 |
| 730 bool requires_high_res_to_draw_; | 731 bool requires_high_res_to_draw_; |
| 731 bool required_for_draw_tile_is_top_of_raster_queue_; | 732 bool is_likely_to_require_a_draw_; |
| 732 | 733 |
| 733 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 734 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 734 }; | 735 }; |
| 735 | 736 |
| 736 } // namespace cc | 737 } // namespace cc |
| 737 | 738 |
| 738 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 739 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |