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

Side by Side Diff: cc/resources/layer_tiling_data.cc

Issue 13051003: cpplint.py pass on cc/(base|debug|quads|resources)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix prioritized_resource_unittest 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/resources/layer_tiling_data.h ('k') | cc/resources/managed_memory_policy.h » ('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 #include "cc/resources/layer_tiling_data.h" 5 #include "cc/resources/layer_tiling_data.h"
6 6
7 #include <vector>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 10
9 namespace cc { 11 namespace cc {
10 12
11 scoped_ptr<LayerTilingData> LayerTilingData::Create(gfx::Size tile_size, 13 scoped_ptr<LayerTilingData> LayerTilingData::Create(gfx::Size tile_size,
12 BorderTexelOption border) { 14 BorderTexelOption border) {
13 return make_scoped_ptr(new LayerTilingData(tile_size, border)); 15 return make_scoped_ptr(new LayerTilingData(tile_size, border));
14 } 16 }
15 17
16 LayerTilingData::LayerTilingData(gfx::Size tile_size, BorderTexelOption border) 18 LayerTilingData::LayerTilingData(gfx::Size tile_size, BorderTexelOption border)
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 std::vector<TileMapKey> invalid_tile_keys; 126 std::vector<TileMapKey> invalid_tile_keys;
125 for (TileMap::const_iterator it = tiles_.begin(); it != tiles_.end(); ++it) { 127 for (TileMap::const_iterator it = tiles_.begin(); it != tiles_.end(); ++it) {
126 if (it->first.first > right || it->first.second > bottom) 128 if (it->first.first > right || it->first.second > bottom)
127 invalid_tile_keys.push_back(it->first); 129 invalid_tile_keys.push_back(it->first);
128 } 130 }
129 for (size_t i = 0; i < invalid_tile_keys.size(); ++i) 131 for (size_t i = 0; i < invalid_tile_keys.size(); ++i)
130 tiles_.erase(invalid_tile_keys[i]); 132 tiles_.erase(invalid_tile_keys[i]);
131 } 133 }
132 134
133 } // namespace cc 135 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/layer_tiling_data.h ('k') | cc/resources/managed_memory_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698