Index: cc/texture_layer.h |
diff --git a/cc/texture_layer.h b/cc/texture_layer.h |
index 36aa86658fc39a4265b2898ad0d6a3d5adf42eed..bf6ac46d044ea94f1feb2a1f8e344dec7f77e4c0 100644 |
--- a/cc/texture_layer.h |
+++ b/cc/texture_layer.h |
@@ -39,8 +39,8 @@ public: |
// Sets whether this texture should be Y-flipped at draw time. Defaults to true. |
void setFlipped(bool); |
- // Sets a UV transform to be used at draw time. Defaults to (0, 0, 1, 1). |
- void setUVRect(const gfx::RectF&); |
+ // Sets a UV transform to be used at draw time. Defaults to (0, 0) and (1, 1). |
+ void setUV(gfx::PointF topLeft, gfx::PointF bottomRight); |
// Sets an opacity value per vertex. It will be multiplied by the layer opacity value. |
void setVertexOpacity(float bottomLeft, float topLeft, float topRight, float bottomRight); |
@@ -81,7 +81,8 @@ private: |
MailboxCallback m_mailboxReleaseCallback; |
bool m_flipped; |
- gfx::RectF m_uvRect; |
+ gfx::PointF m_uvTopLeft; |
+ gfx::PointF m_uvBottomRight; |
// [bottom left, top left, top right, bottom right] |
float m_vertexOpacity[4]; |
bool m_premultipliedAlpha; |