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

Unified Diff: cc/base/math_util.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 | « no previous file | cc/layers/delegated_frame_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/math_util.cc
diff --git a/cc/base/math_util.cc b/cc/base/math_util.cc
index 04e301e3c569fd91e56b390d34b291d6ae8712b2..a91c474669aa1f4dab4c6ec8b9a0130fe480e41d 100644
--- a/cc/base/math_util.cc
+++ b/cc/base/math_util.cc
@@ -202,7 +202,7 @@ gfx::Rect MathUtil::MapEnclosedRectWith2dAxisAlignedTransform(
if (transform.IsIdentityOrTranslation()) {
gfx::Vector2dF offset(transform.matrix().getFloat(0, 3),
transform.matrix().getFloat(1, 3));
- return gfx::ToEnclosedRect(rect + offset);
+ return gfx::ToEnclosedRect(gfx::RectF(rect) + offset);
}
SkMScalar quad[2 * 2]; // input: 2 x 2D points
« no previous file with comments | « no previous file | cc/layers/delegated_frame_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698