| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 void SetNeedsAnimate() override; | 167 void SetNeedsAnimate() override; |
| 168 bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point, | 168 bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point, |
| 169 InputHandler::ScrollInputType type) override; | 169 InputHandler::ScrollInputType type) override; |
| 170 bool HaveWheelEventHandlersAt(const gfx::Point& viewport_point) override; | 170 bool HaveWheelEventHandlersAt(const gfx::Point& viewport_point) override; |
| 171 bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) override; | 171 bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) override; |
| 172 scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( | 172 scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( |
| 173 ui::LatencyInfo* latency) override; | 173 ui::LatencyInfo* latency) override; |
| 174 ScrollElasticityHelper* CreateScrollElasticityHelper() override; | 174 ScrollElasticityHelper* CreateScrollElasticityHelper() override; |
| 175 | 175 |
| 176 // TopControlsManagerClient implementation. | 176 // TopControlsManagerClient implementation. |
| 177 void SetControlsTopOffset(float offset) override; | 177 float TopControlsHeight() const override; |
| 178 float ControlsTopOffset() const override; | 178 void SetCurrentTopControlsShownRatio(float offset) override; |
| 179 float CurrentTopControlsShownRatio() const override; |
| 179 void DidChangeTopControlsPosition() override; | 180 void DidChangeTopControlsPosition() override; |
| 180 bool HaveRootScrollLayer() const override; | 181 bool HaveRootScrollLayer() const override; |
| 181 | 182 |
| 183 void UpdateViewportContainerSizes(); |
| 184 |
| 182 struct CC_EXPORT FrameData : public RenderPassSink { | 185 struct CC_EXPORT FrameData : public RenderPassSink { |
| 183 FrameData(); | 186 FrameData(); |
| 184 ~FrameData() override; | 187 ~FrameData() override; |
| 185 void AsValueInto(base::debug::TracedValue* value) const; | 188 void AsValueInto(base::debug::TracedValue* value) const; |
| 186 | 189 |
| 187 std::vector<gfx::Rect> occluding_screen_space_rects; | 190 std::vector<gfx::Rect> occluding_screen_space_rects; |
| 188 std::vector<gfx::Rect> non_occluding_screen_space_rects; | 191 std::vector<gfx::Rect> non_occluding_screen_space_rects; |
| 189 std::vector<FrameTimingTracker::FrameAndRectIds> composite_events; | 192 std::vector<FrameTimingTracker::FrameAndRectIds> composite_events; |
| 190 RenderPassList render_passes; | 193 RenderPassList render_passes; |
| 191 RenderPassIdHashMap render_passes_by_id; | 194 RenderPassIdHashMap render_passes_by_id; |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 protected: | 526 protected: |
| 524 LayerTreeHostImpl( | 527 LayerTreeHostImpl( |
| 525 const LayerTreeSettings& settings, | 528 const LayerTreeSettings& settings, |
| 526 LayerTreeHostImplClient* client, | 529 LayerTreeHostImplClient* client, |
| 527 Proxy* proxy, | 530 Proxy* proxy, |
| 528 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 531 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
| 529 SharedBitmapManager* shared_bitmap_manager, | 532 SharedBitmapManager* shared_bitmap_manager, |
| 530 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 533 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 531 int id); | 534 int id); |
| 532 | 535 |
| 533 void UpdateViewportContainerSizes(); | |
| 534 | 536 |
| 535 // Virtual for testing. | 537 // Virtual for testing. |
| 536 virtual void AnimateLayers(base::TimeTicks monotonic_time); | 538 virtual void AnimateLayers(base::TimeTicks monotonic_time); |
| 537 const AnimationRegistrar::AnimationControllerMap& | 539 const AnimationRegistrar::AnimationControllerMap& |
| 538 active_animation_controllers() const { | 540 active_animation_controllers() const { |
| 539 return animation_registrar_->active_animation_controllers(); | 541 return animation_registrar_->active_animation_controllers(); |
| 540 } | 542 } |
| 541 | 543 |
| 542 LayerTreeHostImplClient* client_; | 544 LayerTreeHostImplClient* client_; |
| 543 Proxy* proxy_; | 545 Proxy* proxy_; |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 bool is_likely_to_require_a_draw_; | 741 bool is_likely_to_require_a_draw_; |
| 740 | 742 |
| 741 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 743 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
| 742 | 744 |
| 743 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 745 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 744 }; | 746 }; |
| 745 | 747 |
| 746 } // namespace cc | 748 } // namespace cc |
| 747 | 749 |
| 748 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 750 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |