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 /content/common/cc_messages.h | |
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 'content/common/cc_messages.h')
-rw-r--r-- | content/common/cc_messages.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/common/cc_messages.h b/content/common/cc_messages.h index 1a7bcc0..d0d1da6 100644 --- a/content/common/cc_messages.h +++ b/content/common/cc_messages.h @@ -176,7 +176,8 @@ IPC_STRUCT_TRAITS_BEGIN(cc::TextureDrawQuad) IPC_STRUCT_TRAITS_PARENT(cc::DrawQuad) IPC_STRUCT_TRAITS_MEMBER(resource_id) IPC_STRUCT_TRAITS_MEMBER(premultiplied_alpha) - IPC_STRUCT_TRAITS_MEMBER(uv_rect) + IPC_STRUCT_TRAITS_MEMBER(uv_top_left) + IPC_STRUCT_TRAITS_MEMBER(uv_bottom_right) IPC_STRUCT_TRAITS_MEMBER(flipped) IPC_STRUCT_TRAITS_END() |