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

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

Issue 68893031: Unifies LayerTreeHost::SetNeedsUpdateLayers and SetNeedsAnimate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix forced redraw breakage Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.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_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 void SetNeedsDisplayOnAllLayers(); 160 void SetNeedsDisplayOnAllLayers();
161 161
162 void CollectRenderingStats(RenderingStats* stats) const; 162 void CollectRenderingStats(RenderingStats* stats) const;
163 163
164 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { 164 RenderingStatsInstrumentation* rendering_stats_instrumentation() const {
165 return rendering_stats_instrumentation_.get(); 165 return rendering_stats_instrumentation_.get();
166 } 166 }
167 167
168 const RendererCapabilities& GetRendererCapabilities() const; 168 const RendererCapabilities& GetRendererCapabilities() const;
169 169
170 void SetNeedsAnimate();
171 virtual void SetNeedsUpdateLayers(); 170 virtual void SetNeedsUpdateLayers();
172 virtual void SetNeedsCommit(); 171 virtual void SetNeedsCommit();
173 virtual void SetNeedsFullTreeSync(); 172 virtual void SetNeedsFullTreeSync();
174 void SetNeedsRedraw(); 173 void SetNeedsRedraw();
175 void SetNeedsRedrawRect(gfx::Rect damage_rect); 174 void SetNeedsRedrawRect(gfx::Rect damage_rect);
176 bool CommitRequested() const; 175 bool CommitRequested() const;
177 bool BeginMainFrameRequested() const; 176 bool BeginMainFrameRequested() const;
178 177
179 void SetNextCommitWaitsForActivation(); 178 void SetNextCommitWaitsForActivation();
180 179
181 void SetNextCommitForcesRedraw(); 180 void set_next_commit_forces_redraw() { next_commit_forces_redraw_ = true; }
181 bool next_commit_forces_redraw() { return next_commit_forces_redraw_; }
182 182
183 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, 183 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events,
184 base::Time wall_clock_time); 184 base::Time wall_clock_time);
185 185
186 void SetRootLayer(scoped_refptr<Layer> root_layer); 186 void SetRootLayer(scoped_refptr<Layer> root_layer);
187 Layer* root_layer() { return root_layer_.get(); } 187 Layer* root_layer() { return root_layer_.get(); }
188 const Layer* root_layer() const { return root_layer_.get(); } 188 const Layer* root_layer() const { return root_layer_.get(); }
189 const Layer* page_scale_layer() const { return page_scale_layer_.get(); } 189 const Layer* page_scale_layer() const { return page_scale_layer_.get(); }
190 void RegisterViewportLayers( 190 void RegisterViewportLayers(
191 scoped_refptr<Layer> page_scale_layer, 191 scoped_refptr<Layer> page_scale_layer,
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 448
449 ScopedPtrVector<SwapPromise> swap_promise_list_; 449 ScopedPtrVector<SwapPromise> swap_promise_list_;
450 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 450 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
451 451
452 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 452 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
453 }; 453 };
454 454
455 } // namespace cc 455 } // namespace cc
456 456
457 #endif // CC_TREES_LAYER_TREE_HOST_H_ 457 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698