Chromium Code Reviews| Index: cc/texture_layer.cc |
| diff --git a/cc/texture_layer.cc b/cc/texture_layer.cc |
| index ddfa09797241a028f9052398a1bec59d446cbbd2..237340a75f284860f6011afbebc66dca0f6a91cf 100644 |
| --- a/cc/texture_layer.cc |
| +++ b/cc/texture_layer.cc |
| @@ -37,7 +37,8 @@ TextureLayer::TextureLayer(TextureLayerClient* client, bool usesMailbox) |
| , m_client(client) |
| , m_usesMailbox(usesMailbox) |
| , m_flipped(true) |
| - , m_uvRect(0, 0, 1, 1) |
| + , m_uvTopLeft(0, 0) |
|
danakj
2013/01/11 02:21:51
can you make these 0.f and 1.f while you're here?
Jerome
2013/01/11 18:00:01
Done.
|
| + , m_uvBottomRight(1, 1) |
| , m_premultipliedAlpha(true) |
| , m_rateLimitContext(false) |
| , m_contextLost(false) |
| @@ -73,9 +74,10 @@ void TextureLayer::setFlipped(bool flipped) |
| setNeedsCommit(); |
| } |
| -void TextureLayer::setUVRect(const gfx::RectF& rect) |
| +void TextureLayer::setUV(const gfx::PointF& topLeft, const gfx::PointF& bottomRight) |
| { |
| - m_uvRect = rect; |
| + m_uvTopLeft = topLeft; |
| + m_uvBottomRight = bottomRight; |
| setNeedsCommit(); |
| } |
| @@ -178,7 +180,8 @@ void TextureLayer::pushPropertiesTo(LayerImpl* layer) |
| TextureLayerImpl* textureLayer = static_cast<TextureLayerImpl*>(layer); |
| textureLayer->setFlipped(m_flipped); |
| - textureLayer->setUVRect(m_uvRect); |
| + textureLayer->setUVTopLeft(m_uvTopLeft); |
| + textureLayer->setUVBottomRight(m_uvBottomRight); |
| textureLayer->setVertexOpacity(m_vertexOpacity); |
| textureLayer->setPremultipliedAlpha(m_premultipliedAlpha); |
| if (m_usesMailbox) { |