OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_TILING_DATA_H_ | 5 #ifndef CC_TILING_DATA_H_ |
6 #define CC_TILING_DATA_H_ | 6 #define CC_TILING_DATA_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "cc/cc_export.h" |
10 #include "ui/gfx/size.h" | 11 #include "ui/gfx/size.h" |
11 | 12 |
12 namespace gfx { | 13 namespace gfx { |
13 class Rect; | 14 class Rect; |
14 class Vector2d; | 15 class Vector2d; |
15 } | 16 } |
16 | 17 |
17 namespace cc { | 18 namespace cc { |
18 | 19 |
19 class TilingData { | 20 class CC_EXPORT TilingData { |
20 public: | 21 public: |
21 TilingData(gfx::Size max_texture_size, gfx::Size total_size, bool has_border_t
exels); | 22 TilingData(gfx::Size max_texture_size, gfx::Size total_size, bool has_border_t
exels); |
22 ~TilingData(); | 23 ~TilingData(); |
23 | 24 |
24 gfx::Size total_size() const { return total_size_; } | 25 gfx::Size total_size() const { return total_size_; } |
25 void SetTotalSize(const gfx::Size total_size); | 26 void SetTotalSize(const gfx::Size total_size); |
26 | 27 |
27 gfx::Size max_texture_size() const { return max_texture_size_; } | 28 gfx::Size max_texture_size() const { return max_texture_size_; } |
28 void SetMaxTextureSize(gfx::Size max_texture_size); | 29 void SetMaxTextureSize(gfx::Size max_texture_size); |
29 | 30 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 int border_texels_; | 63 int border_texels_; |
63 | 64 |
64 // These are computed values. | 65 // These are computed values. |
65 int num_tiles_x_; | 66 int num_tiles_x_; |
66 int num_tiles_y_; | 67 int num_tiles_y_; |
67 }; | 68 }; |
68 | 69 |
69 } // namespace cc | 70 } // namespace cc |
70 | 71 |
71 #endif // CC_TILING_DATA_H_ | 72 #endif // CC_TILING_DATA_H_ |
OLD | NEW |