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

Unified Diff: cc/base/tiling_data.h

Issue 235753002: cc: Give TilingData a Rect instead of a Size (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Git cl format Created 6 years, 8 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 d885c9bda6a5cd1065cf4a8c08eb4f9045bd6883..27ec034496be45e38474b2f936bbd4acb5e8df86 100644
--- a/cc/base/tiling_data.h
+++ b/cc/base/tiling_data.h
@@ -22,17 +22,15 @@ namespace cc {
class CC_EXPORT TilingData {
public:
TilingData();
- TilingData(
- const gfx::Size& max_texture_size,
- const gfx::Size& total_size,
- bool has_border_texels);
- TilingData(
- const gfx::Size& max_texture_size,
- const gfx::Size& total_size,
- int border_texels);
-
- gfx::Size total_size() const { return total_size_; }
- void SetTotalSize(const gfx::Size& total_size);
+ TilingData(const gfx::Size& max_texture_size,
+ const gfx::Rect& tiling_rect,
+ bool has_border_texels);
+ TilingData(const gfx::Size& max_texture_size,
+ const gfx::Rect& tiling_rect,
+ int border_texels);
+
+ gfx::Rect tiling_rect() const { return tiling_rect_; }
+ void SetTilingRect(const gfx::Rect& tiling_rect);
gfx::Size max_texture_size() const { return max_texture_size_; }
void SetMaxTextureSize(const gfx::Size& max_texture_size);
@@ -193,7 +191,7 @@ class CC_EXPORT TilingData {
void RecomputeNumTiles();
gfx::Size max_texture_size_;
- gfx::Size total_size_;
+ gfx::Rect tiling_rect_;
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