Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1064)

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 901813002: Normalize top controls offset to (0, 1), Chromium-side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace more EXPECT_EQ with EXPECT_FLOAT_EQ for windows bots Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 DoTouchEventsBlockScrollAt(const gfx::Point& viewport_port) override; 171 bool DoTouchEventsBlockScrollAt(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
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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 bool is_likely_to_require_a_draw_; 742 bool is_likely_to_require_a_draw_;
741 743
742 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 744 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
743 745
744 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 746 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
745 }; 747 };
746 748
747 } // namespace cc 749 } // namespace cc
748 750
749 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 751 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698