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

Side by Side Diff: cc/tile_manager.cc

Issue 11369130: [cc] Tiles and tile manager for impl side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixen Created 8 years, 1 month 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/tile_manager.h ('k') | cc/tile_priority.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "cc/tile_manager.h"
6
7 #include "base/logging.h"
8
9 namespace cc {
10
11 TileManager::TileManager(TileManagerClient* client) {
12 }
13
14 TileManager::~TileManager() {
15 DCHECK(registered_tiles_.size() == 0);
16 }
17
18 void TileManager::RegisterTile(Tile* tile) {
19 registered_tiles_.push_back(tile);
20 }
21
22 void TileManager::UnregisterTile(Tile* tile) {
23 // TODO(nduca): Known slow. Shrug. Fish need frying.
24 for (size_t i = 0; i < registered_tiles_.size(); i++) {
25 if (registered_tiles_[i] == tile) {
26 registered_tiles_.erase(registered_tiles_.begin() + i);
27 return;
28 }
29 }
30 DCHECK(false) << "Tile " << tile << " wasnt regitered.";
31 }
32
33 }
OLDNEW
« no previous file with comments | « cc/tile_manager.h ('k') | cc/tile_priority.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698