summaryrefslogtreecommitdiffstats
path: root/webkit/compositor_bindings
diff options
context:
space:
mode:
authorjscholler@chromium.org <jscholler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-17 00:39:42 +0000
committerjscholler@chromium.org <jscholler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-17 00:39:42 +0000
commite692f68f27275e4573c4cf8ec23a731dd3e33ffd (patch)
tree996a5b80696cd6a0822defff3b4c1637d618a1c9 /webkit/compositor_bindings
parent14c0a073c3beef1eb6c72c011e8456a18d95810b (diff)
downloadchromium_src-e692f68f27275e4573c4cf8ec23a731dd3e33ffd.zip
chromium_src-e692f68f27275e4573c4cf8ec23a731dd3e33ffd.tar.gz
chromium_src-e692f68f27275e4573c4cf8ec23a731dd3e33ffd.tar.bz2
cc: Add point-based UV coordinate on TextureLayer
Previously, the uv coordinates was using gfx::RectF as a struct. This was limitating because it could not handle negative width and heights. Soring them as 2 gfx::PointF for the Top-Left and Bottom-Right points aleviate that restriction. The current implementation of the phone UI rely on this feature. BUG=168927 Review URL: https://chromiumcodereview.appspot.com/11783094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177288 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/compositor_bindings')
-rw-r--r--webkit/compositor_bindings/web_external_texture_layer_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/compositor_bindings/web_external_texture_layer_impl.cc b/webkit/compositor_bindings/web_external_texture_layer_impl.cc
index 08d8f11..e3479f2 100644
--- a/webkit/compositor_bindings/web_external_texture_layer_impl.cc
+++ b/webkit/compositor_bindings/web_external_texture_layer_impl.cc
@@ -49,7 +49,7 @@ void WebExternalTextureLayerImpl::setFlipped(bool flipped)
void WebExternalTextureLayerImpl::setUVRect(const WebFloatRect& rect)
{
- static_cast<TextureLayer*>(m_layer->layer())->setUVRect(rect);
+ static_cast<TextureLayer*>(m_layer->layer())->setUV(gfx::PointF(rect.x, rect.y), gfx::PointF(rect.x + rect.width, rect.y + rect.height));
}
void WebExternalTextureLayerImpl::setOpaque(bool opaque)