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 #ifndef CC_TILE_H_ |
| 6 #define CC_TILE_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "cc/picture_pile.h" |
| 10 #include "cc/resource_provider.h" |
| 11 #include "cc/tile_priority.h" |
| 12 #include "ui/gfx/rect.h" |
| 13 #include "ui/gfx/size.h" |
| 14 |
| 15 namespace cc { |
| 16 |
| 17 class TileManager; |
| 18 |
| 19 enum TileQuality { |
| 20 LOW_TILE_QUALITY, |
| 21 NORMAL_TILE_QUALITY |
| 22 }; |
| 23 |
| 24 class Tile : public base::RefCounted<Tile> { |
| 25 public: |
| 26 Tile(TileManager* tile_manager, |
| 27 gfx::Size tile_size, |
| 28 gfx::Rect rect_inside_picture, |
| 29 TileQuality quality); |
| 30 |
| 31 void SetPicturePile(int frame_number, scoped_ptr<PicturePile> picture_pile) {} |
| 32 void SetPriority(int frame_number, TilePriority) {} |
| 33 |
| 34 bool IsDrawable(int frame_number) { return false; } |
| 35 ResourceProvider::ResourceId GetDrawableResourceId(int frame_number) { return
0; } |
| 36 |
| 37 private: |
| 38 friend class base::RefCounted<Tile>; |
| 39 friend class TileManager; |
| 40 |
| 41 ~Tile(); |
| 42 |
| 43 TileManager* tile_manager_; |
| 44 gfx::Rect tile_size_; |
| 45 gfx::Rect rect_inside_picture_; |
| 46 TileQuality quality_; |
| 47 }; |
| 48 |
| 49 } // namespace cc |
| 50 #endif |
OLD | NEW |