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

Side by Side Diff: cc/layers/layer_impl.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 | « no previous file | cc/layers/picture_layer_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_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 gfx::PointF position() const { return position_; } 156 gfx::PointF position() const { return position_; }
157 157
158 void SetIsContainerForFixedPositionLayers(bool container) { 158 void SetIsContainerForFixedPositionLayers(bool container) {
159 is_container_for_fixed_position_layers_ = container; 159 is_container_for_fixed_position_layers_ = container;
160 } 160 }
161 // This is a non-trivial function in Layer. 161 // This is a non-trivial function in Layer.
162 bool IsContainerForFixedPositionLayers() const { 162 bool IsContainerForFixedPositionLayers() const {
163 return is_container_for_fixed_position_layers_; 163 return is_container_for_fixed_position_layers_;
164 } 164 }
165 165
166 void SetFixedContainerSizeDelta(const gfx::Vector2dF& delta) { 166 void SetFixedContainerSizeDelta(gfx::Vector2dF delta) {
167 fixed_container_size_delta_ = delta; 167 fixed_container_size_delta_ = delta;
168 } 168 }
169 const gfx::Vector2dF& fixed_container_size_delta() const { 169 gfx::Vector2dF fixed_container_size_delta() const {
170 return fixed_container_size_delta_; 170 return fixed_container_size_delta_;
171 } 171 }
172 172
173 void SetPositionConstraint(const LayerPositionConstraint& constraint) { 173 void SetPositionConstraint(const LayerPositionConstraint& constraint) {
174 position_constraint_ = constraint; 174 position_constraint_ = constraint;
175 } 175 }
176 const LayerPositionConstraint& position_constraint() const { 176 const LayerPositionConstraint& position_constraint() const {
177 return position_constraint_; 177 return position_constraint_;
178 } 178 }
179 179
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 // Group of properties that need to be computed based on the layer tree 532 // Group of properties that need to be computed based on the layer tree
533 // hierarchy before layers can be drawn. 533 // hierarchy before layers can be drawn.
534 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; 534 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_;
535 535
536 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 536 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
537 }; 537 };
538 538
539 } // namespace cc 539 } // namespace cc
540 540
541 #endif // CC_LAYERS_LAYER_IMPL_H_ 541 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698