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

Unified Diff: cc/playback/picture_pile_impl_unittest.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/playback/picture_pile_impl.cc ('k') | cc/playback/raster_source_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/picture_pile_impl_unittest.cc
diff --git a/cc/playback/picture_pile_impl_unittest.cc b/cc/playback/picture_pile_impl_unittest.cc
index a3df5c99c83b64b7acc5c18b6b79490a92e64f81..4ea3ba5434d0cb2c1adb1c6a4a2eb59cf568aaea 100644
--- a/cc/playback/picture_pile_impl_unittest.cc
+++ b/cc/playback/picture_pile_impl_unittest.cc
@@ -30,8 +30,7 @@ TEST(PicturePileImplTest, AnalyzeIsSolidUnscaled) {
SkPaint non_solid_paint;
non_solid_paint.setColor(non_solid_color);
- recording_source->add_draw_rect_with_paint(gfx::Rect(0, 0, 400, 400),
- solid_paint);
+ recording_source->add_draw_rect_with_paint(gfx::Rect(400, 400), solid_paint);
recording_source->Rerecord();
scoped_refptr<FakePicturePileImpl> pile =
@@ -95,8 +94,7 @@ TEST(PicturePileImplTest, AnalyzeIsSolidScaled) {
SkPaint non_solid_paint;
non_solid_paint.setColor(non_solid_color);
- recording_source->add_draw_rect_with_paint(gfx::Rect(0, 0, 400, 400),
- solid_paint);
+ recording_source->add_draw_rect_with_paint(gfx::Rect(400, 400), solid_paint);
recording_source->Rerecord();
scoped_refptr<FakePicturePileImpl> pile =
@@ -397,7 +395,7 @@ TEST_P(OverlapTest, NoOverlap) {
color_paint.setXfermodeMode(SkXfermode::kPlus_Mode);
// Paint outside the layer to make sure that blending works.
recording_source->add_draw_rect_with_paint(
- gfx::RectF(bigger_than_layer_bounds), color_paint);
+ gfx::Rect(bigger_than_layer_bounds), color_paint);
recording_source->Rerecord();
scoped_refptr<FakePicturePileImpl> pile =
« no previous file with comments | « cc/playback/picture_pile_impl.cc ('k') | cc/playback/raster_source_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698