OLD | NEW |
(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.h" |
| 6 |
| 7 #include "cc/tile_manager.h" |
| 8 |
| 9 namespace cc { |
| 10 |
| 11 Tile::Tile(TileManager* tile_manager, |
| 12 gfx::Size tile_size, |
| 13 gfx::Rect rect_inside_picture, |
| 14 TileQuality quality) |
| 15 : tile_manager_(tile_manager), |
| 16 tile_size_(tile_size), |
| 17 rect_inside_picture_(rect_inside_picture), |
| 18 quality_(quality) { |
| 19 tile_manager_->RegisterTile(this); |
| 20 } |
| 21 |
| 22 Tile::~Tile() { |
| 23 tile_manager_->UnregisterTile(this); |
| 24 } |
| 25 |
| 26 } // namespace cc |
OLD | NEW |