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

Unified Diff: cc/layer_tiling_data.h

Issue 11359030: Create cc::TilingData based on WebCore::TilingData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/cc.gyp ('k') | cc/layer_tiling_data.cc » ('j') | cc/tiling_data.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tiling_data.h
diff --git a/cc/layer_tiling_data.h b/cc/layer_tiling_data.h
index a4645568835b8eb91bf2e0204dd0ede37206aa33..5f2e5ea54dd3783102b56286f5a7eb99581be547 100644
--- a/cc/layer_tiling_data.h
+++ b/cc/layer_tiling_data.h
@@ -10,12 +10,11 @@
#include "base/memory/scoped_ptr.h"
#include "cc/hash_pair.h"
#include "cc/scoped_ptr_hash_map.h"
+#include "cc/tiling_data.h"
#include "ui/gfx/rect.h"
#include "Region.h"
-#include "TilingData.h"
namespace cc {
-class IntRect;
class LayerTilingData {
public:
@@ -25,21 +24,18 @@ public:
static scoped_ptr<LayerTilingData> create(const gfx::Size& tileSize, BorderTexelOption);
- bool hasEmptyBounds() const { return m_tilingData.hasEmptyBounds(); }
- int numTilesX() const { return m_tilingData.numTilesX(); }
- int numTilesY() const { return m_tilingData.numTilesY(); }
- gfx::Rect tileBounds(int i, int j) const { return cc::IntRect(m_tilingData.tileBounds(i, j)); }
- gfx::Vector2d textureOffset(int xIndex, int yIndex) const {
- cc::IntPoint p(m_tilingData.textureOffset(xIndex, yIndex));
- return gfx::Vector2d(p.x(), p.y());
- }
+ bool hasEmptyBounds() const { return m_tilingData.has_empty_bounds(); }
+ int numTilesX() const { return m_tilingData.num_tiles_x(); }
+ int numTilesY() const { return m_tilingData.num_tiles_y(); }
+ gfx::Rect tileBounds(int i, int j) const { return m_tilingData.TileBounds(i, j); }
+ gfx::Vector2d textureOffset(int xIndex, int yIndex) const { return m_tilingData.TextureOffset(xIndex, yIndex); }
// Change the tile size. This may invalidate all the existing tiles.
void setTileSize(const gfx::Size&);
gfx::Size tileSize() const;
// Change the border texel setting. This may invalidate all existing tiles.
void setBorderTexelOption(BorderTexelOption);
- bool hasBorderTexels() const { return m_tilingData.borderTexels(); }
+ bool hasBorderTexels() const { return m_tilingData.border_texels(); }
bool isEmpty() const { return hasEmptyBounds() || !tiles().size(); }
« no previous file with comments | « cc/cc.gyp ('k') | cc/layer_tiling_data.cc » ('j') | cc/tiling_data.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698