From e692f68f27275e4573c4cf8ec23a731dd3e33ffd Mon Sep 17 00:00:00 2001 From: "jscholler@chromium.org" Date: Thu, 17 Jan 2013 00:39:42 +0000 Subject: 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 --- content/common/cc_messages.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'content/common/cc_messages.h') 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() -- cgit v1.1