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

Unified Diff: cc/base/tiling_data.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/base/scoped_ptr_hash_map.h ('k') | cc/debug/fake_web_graphics_context_3d.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/tiling_data.cc
diff --git a/cc/base/tiling_data.cc b/cc/base/tiling_data.cc
index 57985c131d44b1d64f88b0bb4def3897687cd1be..f734b35b31639e093e57663c5b36b5734080db49 100644
--- a/cc/base/tiling_data.cc
+++ b/cc/base/tiling_data.cc
@@ -11,11 +11,15 @@
namespace cc {
-static int ComputeNumTiles(int max_texture_size, int total_size, int border_texels) {
+static int ComputeNumTiles(int max_texture_size,
+ int total_size,
+ int border_texels) {
if (max_texture_size - 2 * border_texels <= 0)
return total_size > 0 && max_texture_size >= total_size ? 1 : 0;
- int num_tiles = std::max(1, 1 + (total_size - 1 - 2 * border_texels) / (max_texture_size - 2 * border_texels));
+ int num_tiles = std::max(1,
+ 1 + (total_size - 1 - 2 * border_texels) /
+ (max_texture_size - 2 * border_texels));
return total_size > 0 ? num_tiles : 0;
}
@@ -27,10 +31,10 @@ TilingData::TilingData()
TilingData::TilingData(
gfx::Size max_texture_size,
gfx::Size total_size,
- bool hasBorderTexels)
+ bool has_border_texels)
: max_texture_size_(max_texture_size),
total_size_(total_size),
- border_texels_(hasBorderTexels ? 1 : 0) {
+ border_texels_(has_border_texels ? 1 : 0) {
RecomputeNumTiles();
}
« no previous file with comments | « cc/base/scoped_ptr_hash_map.h ('k') | cc/debug/fake_web_graphics_context_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698