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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 // TileManagerClient implementation. | 243 // TileManagerClient implementation. |
244 const std::vector<PictureLayerImpl*>& GetPictureLayers() const override; | 244 const std::vector<PictureLayerImpl*>& GetPictureLayers() const override; |
245 void NotifyReadyToActivate() override; | 245 void NotifyReadyToActivate() override; |
246 void NotifyReadyToDraw() override; | 246 void NotifyReadyToDraw() override; |
247 void NotifyTileStateChanged(const Tile* tile) override; | 247 void NotifyTileStateChanged(const Tile* tile) override; |
248 scoped_ptr<RasterTilePriorityQueue> BuildRasterQueue( | 248 scoped_ptr<RasterTilePriorityQueue> BuildRasterQueue( |
249 TreePriority tree_priority, | 249 TreePriority tree_priority, |
250 RasterTilePriorityQueue::Type type) override; | 250 RasterTilePriorityQueue::Type type) override; |
251 scoped_ptr<EvictionTilePriorityQueue> BuildEvictionQueue( | 251 scoped_ptr<EvictionTilePriorityQueue> BuildEvictionQueue( |
252 TreePriority tree_priority) override; | 252 TreePriority tree_priority) override; |
| 253 void SetIsLikelyToRequireADraw(bool is_likely_to_require_a_draw) override; |
253 | 254 |
254 // ScrollbarAnimationControllerClient implementation. | 255 // ScrollbarAnimationControllerClient implementation. |
255 void PostDelayedScrollbarFade(const base::Closure& start_fade, | 256 void PostDelayedScrollbarFade(const base::Closure& start_fade, |
256 base::TimeDelta delay) override; | 257 base::TimeDelta delay) override; |
257 void SetNeedsScrollbarAnimationFrame() override; | 258 void SetNeedsScrollbarAnimationFrame() override; |
258 | 259 |
259 // OutputSurfaceClient implementation. | 260 // OutputSurfaceClient implementation. |
260 void DeferredInitialize() override; | 261 void DeferredInitialize() override; |
261 void ReleaseGL() override; | 262 void ReleaseGL() override; |
262 void CommitVSyncParameters(base::TimeTicks timebase, | 263 void CommitVSyncParameters(base::TimeTicks timebase, |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 SharedBitmapManager* shared_bitmap_manager_; | 719 SharedBitmapManager* shared_bitmap_manager_; |
719 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; | 720 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
720 int id_; | 721 int id_; |
721 | 722 |
722 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 723 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
723 | 724 |
724 std::vector<PictureLayerImpl*> picture_layers_; | 725 std::vector<PictureLayerImpl*> picture_layers_; |
725 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 726 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
726 | 727 |
727 bool requires_high_res_to_draw_; | 728 bool requires_high_res_to_draw_; |
728 bool required_for_draw_tile_is_top_of_raster_queue_; | 729 bool is_likely_to_require_a_draw_; |
729 | 730 |
730 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 731 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
731 }; | 732 }; |
732 | 733 |
733 } // namespace cc | 734 } // namespace cc |
734 | 735 |
735 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 736 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |