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

Side by Side Diff: cc/tiling_data.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/tiled_layer_impl.h ('k') | cc/time_source.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « cc/tiled_layer_impl.h ('k') | cc/time_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698