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

Unified Diff: cc/quads/draw_quad.cc

Issue 1314943008: cc: Remove implicit conversions from Rect to RectF in src/cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rectfconvert-cc: rebase-and-sandwich-strategy Created 5 years, 3 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/quads/content_draw_quad_base.h ('k') | cc/quads/yuv_video_draw_quad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/draw_quad.cc
diff --git a/cc/quads/draw_quad.cc b/cc/quads/draw_quad.cc
index 0bdcdc7a0a9ac9f5ebeea747aff62b1ccad00971..f9bf6fc5874520ae35686b280f848a264fdaabe2 100644
--- a/cc/quads/draw_quad.cc
+++ b/cc/quads/draw_quad.cc
@@ -63,7 +63,7 @@ void DrawQuad::AsValueInto(base::trace_event::TracedValue* value) const {
bool rect_is_clipped;
gfx::QuadF rect_as_target_space_quad =
MathUtil::MapQuad(shared_quad_state->quad_to_target_transform,
- gfx::QuadF(rect), &rect_is_clipped);
+ gfx::QuadF(gfx::RectF(rect)), &rect_is_clipped);
MathUtil::AddToTracedValue("rect_as_target_space_quad",
rect_as_target_space_quad, value);
@@ -72,9 +72,9 @@ void DrawQuad::AsValueInto(base::trace_event::TracedValue* value) const {
MathUtil::AddToTracedValue("content_space_opaque_rect", opaque_rect, value);
bool opaque_rect_is_clipped;
- gfx::QuadF opaque_rect_as_target_space_quad =
- MathUtil::MapQuad(shared_quad_state->quad_to_target_transform,
- gfx::QuadF(opaque_rect), &opaque_rect_is_clipped);
+ gfx::QuadF opaque_rect_as_target_space_quad = MathUtil::MapQuad(
+ shared_quad_state->quad_to_target_transform,
+ gfx::QuadF(gfx::RectF(opaque_rect)), &opaque_rect_is_clipped);
MathUtil::AddToTracedValue("opaque_rect_as_target_space_quad",
opaque_rect_as_target_space_quad, value);
@@ -83,9 +83,9 @@ void DrawQuad::AsValueInto(base::trace_event::TracedValue* value) const {
MathUtil::AddToTracedValue("content_space_visible_rect", visible_rect, value);
bool visible_rect_is_clipped;
- gfx::QuadF visible_rect_as_target_space_quad =
- MathUtil::MapQuad(shared_quad_state->quad_to_target_transform,
- gfx::QuadF(visible_rect), &visible_rect_is_clipped);
+ gfx::QuadF visible_rect_as_target_space_quad = MathUtil::MapQuad(
+ shared_quad_state->quad_to_target_transform,
+ gfx::QuadF(gfx::RectF(visible_rect)), &visible_rect_is_clipped);
MathUtil::AddToTracedValue("visible_rect_as_target_space_quad",
visible_rect_as_target_space_quad, value);
« no previous file with comments | « cc/quads/content_draw_quad_base.h ('k') | cc/quads/yuv_video_draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698