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

Side by Side Diff: cc/layers/solid_color_layer_impl.cc

Issue 12676029: cc: Fix capitalization style in chromified files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/scrollbar_layer_unittest.cc ('k') | cc/layers/solid_color_layer_impl_unittest.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #include "cc/layers/solid_color_layer_impl.h" 5 #include "cc/layers/solid_color_layer_impl.h"
6 6
7 #include "cc/layers/quad_sink.h" 7 #include "cc/layers/quad_sink.h"
8 #include "cc/quads/solid_color_draw_quad.h" 8 #include "cc/quads/solid_color_draw_quad.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 14 matching lines...) Expand all
25 SharedQuadState* shared_quad_state = 25 SharedQuadState* shared_quad_state =
26 quad_sink->UseSharedQuadState(CreateSharedQuadState()); 26 quad_sink->UseSharedQuadState(CreateSharedQuadState());
27 AppendDebugBorderQuad(quad_sink, shared_quad_state, append_quads_data); 27 AppendDebugBorderQuad(quad_sink, shared_quad_state, append_quads_data);
28 28
29 // We create a series of smaller quads instead of just one large one so that 29 // We create a series of smaller quads instead of just one large one so that
30 // the culler can reduce the total pixels drawn. 30 // the culler can reduce the total pixels drawn.
31 int width = content_bounds().width(); 31 int width = content_bounds().width();
32 int height = content_bounds().height(); 32 int height = content_bounds().height();
33 for (int x = 0; x < width; x += tile_size_) { 33 for (int x = 0; x < width; x += tile_size_) {
34 for (int y = 0; y < height; y += tile_size_) { 34 for (int y = 0; y < height; y += tile_size_) {
35 gfx::Rect solidTileRect(x, 35 gfx::Rect solid_tile_rect(x,
36 y, 36 y,
37 std::min(width - x, tile_size_), 37 std::min(width - x, tile_size_),
38 std::min(height - y, tile_size_)); 38 std::min(height - y, tile_size_));
39 scoped_ptr<SolidColorDrawQuad> quad = SolidColorDrawQuad::Create(); 39 scoped_ptr<SolidColorDrawQuad> quad = SolidColorDrawQuad::Create();
40 quad->SetNew(shared_quad_state, solidTileRect, background_color()); 40 quad->SetNew(shared_quad_state, solid_tile_rect, background_color());
41 quad_sink->Append(quad.PassAs<DrawQuad>(), append_quads_data); 41 quad_sink->Append(quad.PassAs<DrawQuad>(), append_quads_data);
42 } 42 }
43 } 43 }
44 } 44 }
45 45
46 const char* SolidColorLayerImpl::LayerTypeAsString() const { 46 const char* SolidColorLayerImpl::LayerTypeAsString() const {
47 return "SolidColorLayer"; 47 return "SolidColorLayer";
48 } 48 }
49 49
50 } // namespace cc 50 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/layers/solid_color_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698