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

Unified Diff: cc/render_pass_draw_quad.h

Issue 11543013: Combine mask texture parameters into single gfx::RectF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address nits Created 8 years 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/layer_tree_host_impl_unittest.cc ('k') | cc/render_pass_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/render_pass_draw_quad.h
diff --git a/cc/render_pass_draw_quad.h b/cc/render_pass_draw_quad.h
index b4c7c75f6f0f2772ecda1c3e1a32f03af3d47930..629eab931ebaf0fcef7b673713f5a47aed0ea16b 100644
--- a/cc/render_pass_draw_quad.h
+++ b/cc/render_pass_draw_quad.h
@@ -24,10 +24,7 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
bool is_replica,
ResourceProvider::ResourceId mask_resource_id,
gfx::Rect contents_changed_since_last_frame,
- float mask_tex_coord_scale_x,
- float mask_tex_coord_scale_y,
- float mask_tex_coord_offset_x,
- float mask_tex_coord_offset_y);
+ gfx::RectF mask_uv_rect);
void SetAll(const SharedQuadState* shared_quad_state,
gfx::Rect rect,
@@ -38,10 +35,7 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
bool is_replica,
ResourceProvider::ResourceId mask_resource_id,
gfx::Rect contents_changed_since_last_frame,
- float mask_tex_coord_scale_x,
- float mask_tex_coord_scale_y,
- float mask_tex_coord_offset_x,
- float mask_tex_coord_offset_y);
+ gfx::RectF mask_uv_rect);
scoped_ptr<RenderPassDrawQuad> Copy(
const SharedQuadState* copied_shared_quad_state,
@@ -51,11 +45,7 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
bool is_replica;
ResourceProvider::ResourceId mask_resource_id;
gfx::Rect contents_changed_since_last_frame;
- // TODO(danakj): Make these a tex_coord_rect like TileDrawQuad.
- float mask_tex_coord_scale_x;
- float mask_tex_coord_scale_y;
- float mask_tex_coord_offset_x;
- float mask_tex_coord_offset_y;
+ gfx::RectF mask_uv_rect;
static const RenderPassDrawQuad* MaterialCast(const DrawQuad*);
private:
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/render_pass_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698