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

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: 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
Index: cc/texture_layer_impl.h
diff --git a/cc/texture_layer_impl.h b/cc/texture_layer_impl.h
index 7e434e44f1163fc81420f04baa34a6c5d086b360..d6dbe7997697c4c96203f61077caab26800a18ef 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(const gfx::PointF& topLeft) { m_uvTopLeft = topLeft; }
+ void setUVBottomRight(const gfx::PointF& bottomRight) { m_uvBottomRight = bottomRight; }
// 1--2
// | |
@@ -51,7 +52,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') | cc/video_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698