summaryrefslogtreecommitdiffstats
path: root/cc/texture_layer_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/texture_layer_impl.h')
-rw-r--r--cc/texture_layer_impl.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/cc/texture_layer_impl.h b/cc/texture_layer_impl.h
index b7e5998..0f0ac3e 100644
--- a/cc/texture_layer_impl.h
+++ b/cc/texture_layer_impl.h
@@ -33,8 +33,7 @@ public:
void setTextureId(unsigned id) { m_textureId = id; }
void setPremultipliedAlpha(bool premultipliedAlpha) { m_premultipliedAlpha = premultipliedAlpha; }
void setFlipped(bool flipped) { m_flipped = flipped; }
- void setUVTopLeft(gfx::PointF topLeft) { m_uvTopLeft = topLeft; }
- void setUVBottomRight(gfx::PointF bottomRight) { m_uvBottomRight = bottomRight; }
+ void setUVRect(const gfx::RectF& rect) { m_uvRect = rect; }
// 1--2
// | |
@@ -53,8 +52,7 @@ private:
ResourceProvider::ResourceId m_externalTextureResource;
bool m_premultipliedAlpha;
bool m_flipped;
- gfx::PointF m_uvTopLeft;
- gfx::PointF m_uvBottomRight;
+ gfx::RectF m_uvRect;
float m_vertexOpacity[4];
bool m_hasPendingMailbox;