Chromium Code Reviews| Index: cc/texture_layer.h |
| diff --git a/cc/texture_layer.h b/cc/texture_layer.h |
| index 4fea928d964eaf449eb6f552336df6e6fa48a216..d96e7a43fe3efa3f92d1da62227e03b1a88b340e 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(const gfx::PointF& topLeft, const gfx::PointF& bottomRight); |
|
danakj
2013/01/11 02:21:51
pass by value please
Jerome
2013/01/11 18:00:01
Done.
|
| // 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); |
| @@ -79,7 +79,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; |