OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CC_TILE_H_ | 5 #ifndef CC_TILE_H_ |
6 #define CC_TILE_H_ | 6 #define CC_TILE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
11 #include "cc/layer_tree_host_impl.h" | 11 #include "cc/layer_tree_host_impl.h" |
12 #include "cc/picture_pile.h" | 12 #include "cc/picture_pile.h" |
13 #include "cc/resource_provider.h" | 13 #include "cc/resource_provider.h" |
14 #include "cc/tile_manager.h" | 14 #include "cc/tile_manager.h" |
15 #include "cc/tile_priority.h" | 15 #include "cc/tile_priority.h" |
16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
17 #include "ui/gfx/size.h" | 17 #include "ui/gfx/size.h" |
18 | 18 |
19 namespace cc { | 19 namespace cc { |
20 | 20 |
21 class Tile; | 21 class Tile; |
22 | 22 |
23 class Tile : public base::RefCounted<Tile> { | 23 class CC_EXPORT Tile : public base::RefCounted<Tile> { |
24 public: | 24 public: |
25 Tile(TileManager* tile_manager, | 25 Tile(TileManager* tile_manager, |
26 PicturePile* picture_pile, | 26 PicturePile* picture_pile, |
27 gfx::Size tile_size, | 27 gfx::Size tile_size, |
28 GLenum format, | 28 GLenum format, |
29 gfx::Rect rect_inside_picture); | 29 gfx::Rect rect_inside_picture); |
30 | 30 |
31 const PicturePile* picture_pile() const { | 31 const PicturePile* picture_pile() const { |
32 return picture_pile_; | 32 return picture_pile_; |
33 } | 33 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 gfx::Rect rect_inside_picture_; | 70 gfx::Rect rect_inside_picture_; |
71 gfx::Rect opaque_rect_; | 71 gfx::Rect opaque_rect_; |
72 | 72 |
73 TilePriority priority_[2]; | 73 TilePriority priority_[2]; |
74 ManagedTileState managed_state_; | 74 ManagedTileState managed_state_; |
75 }; | 75 }; |
76 | 76 |
77 } // namespace cc | 77 } // namespace cc |
78 | 78 |
79 #endif // CC_TILE_H_ | 79 #endif // CC_TILE_H_ |
OLD | NEW |