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

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

Issue 13817003: Damage root layer when viewport or top controls changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix LayerTreeHostDelegatedTestLayerUsesFrameDamage Created 7 years, 8 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/input/top_controls_manager_unittest.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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 virtual void PinchGestureEnd() OVERRIDE; 107 virtual void PinchGestureEnd() OVERRIDE;
108 virtual void StartPageScaleAnimation(gfx::Vector2d target_offset, 108 virtual void StartPageScaleAnimation(gfx::Vector2d target_offset,
109 bool anchor_point, 109 bool anchor_point,
110 float page_scale, 110 float page_scale,
111 base::TimeTicks start_time, 111 base::TimeTicks start_time,
112 base::TimeDelta duration) OVERRIDE; 112 base::TimeDelta duration) OVERRIDE;
113 virtual void ScheduleAnimation() OVERRIDE; 113 virtual void ScheduleAnimation() OVERRIDE;
114 virtual bool HaveTouchEventHandlersAt(gfx::Point viewport_port) OVERRIDE; 114 virtual bool HaveTouchEventHandlersAt(gfx::Point viewport_port) OVERRIDE;
115 115
116 // TopControlsManagerClient implementation. 116 // TopControlsManagerClient implementation.
117 virtual void setActiveTreeNeedsUpdateDrawProperties() OVERRIDE; 117 virtual void DidChangeTopControlsPosition() OVERRIDE;
118 virtual void setNeedsRedraw() OVERRIDE; 118 virtual bool HaveRootScrollLayer() const OVERRIDE;
119 virtual bool haveRootScrollLayer() const OVERRIDE;
120 119
121 void StartScrollbarAnimation(base::TimeTicks now); 120 void StartScrollbarAnimation(base::TimeTicks now);
122 121
123 struct CC_EXPORT FrameData : public RenderPassSink { 122 struct CC_EXPORT FrameData : public RenderPassSink {
124 FrameData(); 123 FrameData();
125 virtual ~FrameData(); 124 virtual ~FrameData();
126 125
127 std::vector<gfx::Rect> occluding_screen_space_rects; 126 std::vector<gfx::Rect> occluding_screen_space_rects;
128 std::vector<gfx::Rect> non_occluding_screen_space_rects; 127 std::vector<gfx::Rect> non_occluding_screen_space_rects;
129 RenderPassList render_passes; 128 RenderPassList render_passes;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 225
227 // Shortcuts to layers on the active tree. 226 // Shortcuts to layers on the active tree.
228 LayerImpl* RootLayer() const; 227 LayerImpl* RootLayer() const;
229 LayerImpl* RootScrollLayer() const; 228 LayerImpl* RootScrollLayer() const;
230 LayerImpl* CurrentlyScrollingLayer() const; 229 LayerImpl* CurrentlyScrollingLayer() const;
231 230
232 virtual void SetVisible(bool visible); 231 virtual void SetVisible(bool visible);
233 bool visible() const { return visible_; } 232 bool visible() const { return visible_; }
234 233
235 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); } 234 void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); }
235 void SetNeedsRedraw() { client_->SetNeedsRedrawOnImplThread(); }
236 236
237 size_t memory_allocation_limit_bytes() const { 237 size_t memory_allocation_limit_bytes() const {
238 return managed_memory_policy_.bytes_limit_when_visible; 238 return managed_memory_policy_.bytes_limit_when_visible;
239 } 239 }
240 240
241 void SetViewportSize(gfx::Size layout_viewport_size, 241 void SetViewportSize(gfx::Size layout_viewport_size,
242 gfx::Size device_viewport_size); 242 gfx::Size device_viewport_size);
243 gfx::Size layout_viewport_size() const { return layout_viewport_size_; } 243 gfx::Size layout_viewport_size() const { return layout_viewport_size_; }
244 gfx::Size device_viewport_size() const { return device_viewport_size_; } 244 gfx::Size device_viewport_size() const { return device_viewport_size_; }
245 245
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 scoped_ptr<AnimationRegistrar> animation_registrar_; 471 scoped_ptr<AnimationRegistrar> animation_registrar_;
472 472
473 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 473 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
474 474
475 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 475 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
476 }; 476 };
477 477
478 } // namespace cc 478 } // namespace cc
479 479
480 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 480 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/input/top_controls_manager_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698