diff options
author | jscholler@chromium.org <jscholler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-17 00:39:42 +0000 |
---|---|---|
committer | jscholler@chromium.org <jscholler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-17 00:39:42 +0000 |
commit | e692f68f27275e4573c4cf8ec23a731dd3e33ffd (patch) | |
tree | 996a5b80696cd6a0822defff3b4c1637d618a1c9 /webkit/compositor_bindings | |
parent | 14c0a073c3beef1eb6c72c011e8456a18d95810b (diff) | |
download | chromium_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.cc | 2 |
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) |