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

Side by Side Diff: cc/layers/layer_impl.h

Issue 12965007: Fix cpplint errors in cc/(animation|input|layers|trees|test)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 9 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/layers/layer.cc ('k') | cc/layers/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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 DCHECK(!draw_properties_.render_target || 235 DCHECK(!draw_properties_.render_target ||
236 draw_properties_.render_target->render_surface()); 236 draw_properties_.render_target->render_surface());
237 return draw_properties_.render_target; 237 return draw_properties_.render_target;
238 } 238 }
239 const LayerImpl* render_target() const { 239 const LayerImpl* render_target() const {
240 DCHECK(!draw_properties_.render_target || 240 DCHECK(!draw_properties_.render_target ||
241 draw_properties_.render_target->render_surface()); 241 draw_properties_.render_target->render_surface());
242 return draw_properties_.render_target; 242 return draw_properties_.render_target;
243 } 243 }
244 RenderSurfaceImpl* render_surface() const { 244 RenderSurfaceImpl* render_surface() const {
245 return draw_properties_.render_surface.get(); 245 return draw_properties_.render_surface.get();
246 } 246 }
247 247
248 // The client should be responsible for setting bounds, content bounds and 248 // The client should be responsible for setting bounds, content bounds and
249 // contents scale to appropriate values. LayerImpl doesn't calculate any of 249 // contents scale to appropriate values. LayerImpl doesn't calculate any of
250 // them from the other values. 250 // them from the other values.
251 251
252 void SetBounds(gfx::Size bounds); 252 void SetBounds(gfx::Size bounds);
253 gfx::Size bounds() const { return bounds_; } 253 gfx::Size bounds() const { return bounds_; }
254 254
255 void SetContentBounds(gfx::Size content_bounds); 255 void SetContentBounds(gfx::Size content_bounds);
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 ScrollbarLayerImpl* horizontal_scrollbar_layer_; 516 ScrollbarLayerImpl* horizontal_scrollbar_layer_;
517 ScrollbarLayerImpl* vertical_scrollbar_layer_; 517 ScrollbarLayerImpl* vertical_scrollbar_layer_;
518 518
519 // Group of properties that need to be computed based on the layer tree 519 // Group of properties that need to be computed based on the layer tree
520 // hierarchy before layers can be drawn. 520 // hierarchy before layers can be drawn.
521 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; 521 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_;
522 522
523 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 523 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
524 }; 524 };
525 525
526 } 526 } // namespace cc
527 527
528 #endif // CC_LAYERS_LAYER_IMPL_H_ 528 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698