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

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

Issue 133263004: Unifies LayerTreeHost::SetNeedsUpdateLayers and SetNeedsAnimate -- V2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mojo build Created 6 years, 11 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 | 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 void SetNeedsDisplayOnAllLayers(); 163 void SetNeedsDisplayOnAllLayers();
164 164
165 void CollectRenderingStats(RenderingStats* stats) const; 165 void CollectRenderingStats(RenderingStats* stats) const;
166 166
167 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { 167 RenderingStatsInstrumentation* rendering_stats_instrumentation() const {
168 return rendering_stats_instrumentation_.get(); 168 return rendering_stats_instrumentation_.get();
169 } 169 }
170 170
171 const RendererCapabilities& GetRendererCapabilities() const; 171 const RendererCapabilities& GetRendererCapabilities() const;
172 172
173 void SetNeedsAnimate();
174 virtual void SetNeedsUpdateLayers(); 173 virtual void SetNeedsUpdateLayers();
175 virtual void SetNeedsCommit(); 174 virtual void SetNeedsCommit();
176 virtual void SetNeedsFullTreeSync(); 175 virtual void SetNeedsFullTreeSync();
177 void SetNeedsRedraw(); 176 void SetNeedsRedraw();
178 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); 177 void SetNeedsRedrawRect(const gfx::Rect& damage_rect);
179 bool CommitRequested() const; 178 bool CommitRequested() const;
180 bool BeginMainFrameRequested() const; 179 bool BeginMainFrameRequested() const;
181 180
182 void SetNextCommitWaitsForActivation(); 181 void SetNextCommitWaitsForActivation();
183 182
184 void SetNextCommitForcesRedraw(); 183 void set_next_commit_forces_redraw() { next_commit_forces_redraw_ = true; }
184 bool next_commit_forces_redraw() { return next_commit_forces_redraw_; }
185 185
186 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, 186 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events,
187 base::Time wall_clock_time); 187 base::Time wall_clock_time);
188 188
189 void SetRootLayer(scoped_refptr<Layer> root_layer); 189 void SetRootLayer(scoped_refptr<Layer> root_layer);
190 Layer* root_layer() { return root_layer_.get(); } 190 Layer* root_layer() { return root_layer_.get(); }
191 const Layer* root_layer() const { return root_layer_.get(); } 191 const Layer* root_layer() const { return root_layer_.get(); }
192 const Layer* page_scale_layer() const { return page_scale_layer_.get(); } 192 const Layer* page_scale_layer() const { return page_scale_layer_.get(); }
193 void RegisterViewportLayers( 193 void RegisterViewportLayers(
194 scoped_refptr<Layer> page_scale_layer, 194 scoped_refptr<Layer> page_scale_layer,
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 451
452 ScopedPtrVector<SwapPromise> swap_promise_list_; 452 ScopedPtrVector<SwapPromise> swap_promise_list_;
453 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 453 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
454 454
455 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 455 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
456 }; 456 };
457 457
458 } // namespace cc 458 } // namespace cc
459 459
460 #endif // CC_TREES_LAYER_TREE_HOST_H_ 460 #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