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

Unified Diff: cc/tile.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/tile.h ('k') | cc/tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile.cc
diff --git a/cc/tile.cc b/cc/tile.cc
new file mode 100644
index 0000000000000000000000000000000000000000..536b2efc5e6883cff024a7b2464ba9372ec063c2
--- /dev/null
+++ b/cc/tile.cc
@@ -0,0 +1,26 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "cc/tile.h"
+
+#include "cc/tile_manager.h"
+
+namespace cc {
+
+Tile::Tile(TileManager* tile_manager,
+ gfx::Size tile_size,
+ gfx::Rect rect_inside_picture,
+ TileQuality quality)
+ : tile_manager_(tile_manager),
+ tile_size_(tile_size),
+ rect_inside_picture_(rect_inside_picture),
+ quality_(quality) {
+ tile_manager_->RegisterTile(this);
+}
+
+Tile::~Tile() {
+ tile_manager_->UnregisterTile(this);
+}
+
+} // namespace cc
« no previous file with comments | « cc/tile.h ('k') | cc/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698