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

Unified Diff: cc/base/tiling_data.h

Issue 389973004: cc: Give TilingData back a Size instead of a Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tilingsize: comments Created 6 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/base/tiling_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/tiling_data.h
diff --git a/cc/base/tiling_data.h b/cc/base/tiling_data.h
index 94bee34781a92124cfc0ece8372aad50222d9916..7cd9457095fac4c840c76f38ae20b3df021f205d 100644
--- a/cc/base/tiling_data.h
+++ b/cc/base/tiling_data.h
@@ -23,14 +23,14 @@ class CC_EXPORT TilingData {
public:
TilingData();
TilingData(const gfx::Size& max_texture_size,
- const gfx::Rect& tiling_rect,
+ const gfx::Size& tiling_size,
bool has_border_texels);
TilingData(const gfx::Size& max_texture_size,
- const gfx::Rect& tiling_rect,
+ const gfx::Size& tiling_size,
int border_texels);
- gfx::Rect tiling_rect() const { return tiling_rect_; }
- void SetTilingRect(const gfx::Rect& tiling_rect);
+ gfx::Size tiling_size() const { return tiling_size_; }
+ void SetTilingSize(const gfx::Size& tiling_size);
gfx::Size max_texture_size() const { return max_texture_size_; }
void SetMaxTextureSize(const gfx::Size& max_texture_size);
@@ -93,7 +93,7 @@ class CC_EXPORT TilingData {
public:
Iterator();
Iterator(const TilingData* tiling_data,
- const gfx::Rect& tiling_rect,
+ const gfx::Rect& consider_rect,
bool include_borders);
Iterator& operator++();
@@ -195,7 +195,7 @@ class CC_EXPORT TilingData {
void RecomputeNumTiles();
gfx::Size max_texture_size_;
- gfx::Rect tiling_rect_;
+ gfx::Size tiling_size_;
int border_texels_;
// These are computed values.
« no previous file with comments | « no previous file | cc/base/tiling_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698