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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 void PinchGestureUpdate(float magnify_delta, | 159 void PinchGestureUpdate(float magnify_delta, |
160 const gfx::Point& anchor) override; | 160 const gfx::Point& anchor) override; |
161 void PinchGestureEnd() override; | 161 void PinchGestureEnd() override; |
162 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 162 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
163 bool anchor_point, | 163 bool anchor_point, |
164 float page_scale, | 164 float page_scale, |
165 base::TimeDelta duration); | 165 base::TimeDelta duration); |
166 void SetNeedsAnimate() override; | 166 void SetNeedsAnimate() override; |
167 bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point, | 167 bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point, |
168 InputHandler::ScrollInputType type) override; | 168 InputHandler::ScrollInputType type) override; |
| 169 bool HaveWheelEventHandlersAt(const gfx::Point& viewport_point) override; |
169 bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) override; | 170 bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) override; |
170 scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( | 171 scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( |
171 ui::LatencyInfo* latency) override; | 172 ui::LatencyInfo* latency) override; |
172 ScrollElasticityHelper* CreateScrollElasticityHelper() override; | 173 ScrollElasticityHelper* CreateScrollElasticityHelper() override; |
173 | 174 |
174 // TopControlsManagerClient implementation. | 175 // TopControlsManagerClient implementation. |
175 void SetControlsTopOffset(float offset) override; | 176 void SetControlsTopOffset(float offset) override; |
176 float ControlsTopOffset() const override; | 177 float ControlsTopOffset() const override; |
177 void DidChangeTopControlsPosition() override; | 178 void DidChangeTopControlsPosition() override; |
178 bool HaveRootScrollLayer() const override; | 179 bool HaveRootScrollLayer() const override; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 // for draw properties, tilings, quads and render passes. | 235 // for draw properties, tilings, quads and render passes. |
235 gfx::Size DrawViewportSize() const; | 236 gfx::Size DrawViewportSize() const; |
236 | 237 |
237 // Viewport rect in view space used for tiling prioritization. | 238 // Viewport rect in view space used for tiling prioritization. |
238 const gfx::Rect ViewportRectForTilePriority() const; | 239 const gfx::Rect ViewportRectForTilePriority() const; |
239 | 240 |
240 // RendererClient implementation. | 241 // RendererClient implementation. |
241 void SetFullRootLayerDamage() override; | 242 void SetFullRootLayerDamage() override; |
242 | 243 |
243 // TileManagerClient implementation. | 244 // TileManagerClient implementation. |
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; |
| 254 |
| 255 // Returns existing picture layers. |
| 256 // TODO(vmpstr): Remove this, it's only used in tests. |
| 257 const std::vector<PictureLayerImpl*>& GetPictureLayers() const; |
253 | 258 |
254 // ScrollbarAnimationControllerClient implementation. | 259 // ScrollbarAnimationControllerClient implementation. |
255 void PostDelayedScrollbarFade(const base::Closure& start_fade, | 260 void PostDelayedScrollbarFade(const base::Closure& start_fade, |
256 base::TimeDelta delay) override; | 261 base::TimeDelta delay) override; |
257 void SetNeedsScrollbarAnimationFrame() override; | 262 void SetNeedsScrollbarAnimationFrame() override; |
258 | 263 |
259 // OutputSurfaceClient implementation. | 264 // OutputSurfaceClient implementation. |
260 void DeferredInitialize() override; | 265 void DeferredInitialize() override; |
261 void ReleaseGL() override; | 266 void ReleaseGL() override; |
262 void CommitVSyncParameters(base::TimeTicks timebase, | 267 void CommitVSyncParameters(base::TimeTicks timebase, |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 SharedBitmapManager* shared_bitmap_manager_; | 723 SharedBitmapManager* shared_bitmap_manager_; |
719 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; | 724 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
720 int id_; | 725 int id_; |
721 | 726 |
722 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 727 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
723 | 728 |
724 std::vector<PictureLayerImpl*> picture_layers_; | 729 std::vector<PictureLayerImpl*> picture_layers_; |
725 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; | 730 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; |
726 | 731 |
727 bool requires_high_res_to_draw_; | 732 bool requires_high_res_to_draw_; |
728 bool required_for_draw_tile_is_top_of_raster_queue_; | 733 bool is_likely_to_require_a_draw_; |
729 | 734 |
730 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 735 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
731 }; | 736 }; |
732 | 737 |
733 } // namespace cc | 738 } // namespace cc |
734 | 739 |
735 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 740 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |