Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1017)

Unified Diff: cc/texture_layer_impl.h

Issue 11783094: cc: Add point-based UV coordinate on TextureLayer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/texture_layer.cc ('k') | cc/texture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/texture_layer_impl.h
diff --git a/cc/texture_layer_impl.h b/cc/texture_layer_impl.h
index 0f0ac3e43895e10356bf41f5d1c7cae51e344479..b7e5998f1ea007518ad23bbcab689d973c46608c 100644
--- a/cc/texture_layer_impl.h
+++ b/cc/texture_layer_impl.h
@@ -33,7 +33,8 @@ public:
void setTextureId(unsigned id) { m_textureId = id; }
void setPremultipliedAlpha(bool premultipliedAlpha) { m_premultipliedAlpha = premultipliedAlpha; }
void setFlipped(bool flipped) { m_flipped = flipped; }
- void setUVRect(const gfx::RectF& rect) { m_uvRect = rect; }
+ void setUVTopLeft(gfx::PointF topLeft) { m_uvTopLeft = topLeft; }
+ void setUVBottomRight(gfx::PointF bottomRight) { m_uvBottomRight = bottomRight; }
// 1--2
// | |
@@ -52,7 +53,8 @@ private:
ResourceProvider::ResourceId m_externalTextureResource;
bool m_premultipliedAlpha;
bool m_flipped;
- gfx::RectF m_uvRect;
+ gfx::PointF m_uvTopLeft;
+ gfx::PointF m_uvBottomRight;
float m_vertexOpacity[4];
bool m_hasPendingMailbox;
« no previous file with comments | « cc/texture_layer.cc ('k') | cc/texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698