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

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

Issue 14301021: cc: Don't pass simple well-defined classes by reference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | 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 <vector> 9 #include <vector>
10 10
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 RenderingStatsInstrumentation* rendering_stats_instrumentation() const { 158 RenderingStatsInstrumentation* rendering_stats_instrumentation() const {
159 return rendering_stats_instrumentation_.get(); 159 return rendering_stats_instrumentation_.get();
160 } 160 }
161 161
162 const RendererCapabilities& GetRendererCapabilities() const; 162 const RendererCapabilities& GetRendererCapabilities() const;
163 163
164 void SetNeedsAnimate(); 164 void SetNeedsAnimate();
165 virtual void SetNeedsCommit(); 165 virtual void SetNeedsCommit();
166 virtual void SetNeedsFullTreeSync(); 166 virtual void SetNeedsFullTreeSync();
167 void SetNeedsRedraw(); 167 void SetNeedsRedraw();
168 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); 168 void SetNeedsRedrawRect(gfx::Rect damage_rect);
169 bool CommitRequested() const; 169 bool CommitRequested() const;
170 170
171 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events, 171 void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events,
172 base::Time wall_clock_time); 172 base::Time wall_clock_time);
173 173
174 void SetRootLayer(scoped_refptr<Layer> root_layer); 174 void SetRootLayer(scoped_refptr<Layer> root_layer);
175 Layer* root_layer() { return root_layer_.get(); } 175 Layer* root_layer() { return root_layer_.get(); }
176 const Layer* root_layer() const { return root_layer_.get(); } 176 const Layer* root_layer() const { return root_layer_.get(); }
177 const Layer* RootScrollLayer() const; 177 const Layer* RootScrollLayer() const;
178 178
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 bool in_paint_layer_contents_; 342 bool in_paint_layer_contents_;
343 343
344 LatencyInfo latency_info_; 344 LatencyInfo latency_info_;
345 345
346 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 346 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
347 }; 347 };
348 348
349 } // namespace cc 349 } // namespace cc
350 350
351 #endif // CC_TREES_LAYER_TREE_HOST_H_ 351 #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