| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // for draw properties, tilings, quads and render passes. | 234 // for draw properties, tilings, quads and render passes. |
| 235 gfx::Size DrawViewportSize() const; | 235 gfx::Size DrawViewportSize() const; |
| 236 | 236 |
| 237 // Viewport rect in view space used for tiling prioritization. | 237 // Viewport rect in view space used for tiling prioritization. |
| 238 const gfx::Rect ViewportRectForTilePriority() const; | 238 const gfx::Rect ViewportRectForTilePriority() const; |
| 239 | 239 |
| 240 // RendererClient implementation. | 240 // RendererClient implementation. |
| 241 void SetFullRootLayerDamage() override; | 241 void SetFullRootLayerDamage() override; |
| 242 | 242 |
| 243 // TileManagerClient implementation. | 243 // TileManagerClient implementation. |
| 244 const std::vector<PictureLayerImpl*>& GetPictureLayers() const override; | |
| 245 void NotifyReadyToActivate() override; | 244 void NotifyReadyToActivate() override; |
| 246 void NotifyReadyToDraw() override; | 245 void NotifyReadyToDraw() override; |
| 247 void NotifyTileStateChanged(const Tile* tile) override; | 246 void NotifyTileStateChanged(const Tile* tile) override; |
| 248 scoped_ptr<RasterTilePriorityQueue> BuildRasterQueue( | 247 scoped_ptr<RasterTilePriorityQueue> BuildRasterQueue( |
| 249 TreePriority tree_priority, | 248 TreePriority tree_priority, |
| 250 RasterTilePriorityQueue::Type type) override; | 249 RasterTilePriorityQueue::Type type) override; |
| 251 scoped_ptr<EvictionTilePriorityQueue> BuildEvictionQueue( | 250 scoped_ptr<EvictionTilePriorityQueue> BuildEvictionQueue( |
| 252 TreePriority tree_priority) override; | 251 TreePriority tree_priority) override; |
| 253 | 252 |
| 253 // Returns existing picture layers. |
| 254 // TODO(vmpstr): Remove this, it's only used in tests. |
| 255 const std::vector<PictureLayerImpl*>& GetPictureLayers() const; |
| 256 |
| 254 // ScrollbarAnimationControllerClient implementation. | 257 // ScrollbarAnimationControllerClient implementation. |
| 255 void PostDelayedScrollbarFade(const base::Closure& start_fade, | 258 void PostDelayedScrollbarFade(const base::Closure& start_fade, |
| 256 base::TimeDelta delay) override; | 259 base::TimeDelta delay) override; |
| 257 void SetNeedsScrollbarAnimationFrame() override; | 260 void SetNeedsScrollbarAnimationFrame() override; |
| 258 | 261 |
| 259 // OutputSurfaceClient implementation. | 262 // OutputSurfaceClient implementation. |
| 260 void DeferredInitialize() override; | 263 void DeferredInitialize() override; |
| 261 void ReleaseGL() override; | 264 void ReleaseGL() override; |
| 262 void CommitVSyncParameters(base::TimeTicks timebase, | 265 void CommitVSyncParameters(base::TimeTicks timebase, |
| 263 base::TimeDelta interval) override; | 266 base::TimeDelta interval) override; |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 | 729 |
| 727 bool requires_high_res_to_draw_; | 730 bool requires_high_res_to_draw_; |
| 728 bool required_for_draw_tile_is_top_of_raster_queue_; | 731 bool required_for_draw_tile_is_top_of_raster_queue_; |
| 729 | 732 |
| 730 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 733 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 731 }; | 734 }; |
| 732 | 735 |
| 733 } // namespace cc | 736 } // namespace cc |
| 734 | 737 |
| 735 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 738 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |