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

Unified Diff: cc/texture_draw_quad.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/test/render_pass_test_common.cc ('k') | cc/texture_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/texture_draw_quad.h
diff --git a/cc/texture_draw_quad.h b/cc/texture_draw_quad.h
index 6ec2934790b23e3e3f2a33563da38b5b26278639..df50558ff7976893eaa20994cd30be363af1a5c7 100644
--- a/cc/texture_draw_quad.h
+++ b/cc/texture_draw_quad.h
@@ -21,7 +21,8 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
gfx::Rect opaque_rect,
unsigned resource_id,
bool premultiplied_alpha,
- const gfx::RectF& uv_rect,
+ gfx::PointF uv_top_left,
+ gfx::PointF uv_bottom_right,
const float vertex_opacity[4],
bool flipped);
@@ -32,13 +33,15 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
bool needs_blending,
unsigned resource_id,
bool premultiplied_alpha,
- const gfx::RectF& uv_rect,
+ gfx::PointF uv_top_left,
+ gfx::PointF uv_bottom_right,
const float vertex_opacity[4],
bool flipped);
unsigned resource_id;
bool premultiplied_alpha;
- gfx::RectF uv_rect;
+ gfx::PointF uv_top_left;
+ gfx::PointF uv_bottom_right;
float vertex_opacity[4];
bool flipped;
« no previous file with comments | « cc/test/render_pass_test_common.cc ('k') | cc/texture_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698