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

Unified Diff: cc/layers/picture_image_layer_unittest.cc

Issue 2716013002: don't use deprecated helper methods on SkCanvas (Closed)
Patch Set: Created 3 years, 10 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/output/renderer_pixeltest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_image_layer_unittest.cc
diff --git a/cc/layers/picture_image_layer_unittest.cc b/cc/layers/picture_image_layer_unittest.cc
index 2280494bd4c33e5cf0ad6254860512e965b6dcdf..ecdf15bbf0aa99fa486ddd4d0978148e09f0101c 100644
--- a/cc/layers/picture_image_layer_unittest.cc
+++ b/cc/layers/picture_image_layer_unittest.cc
@@ -37,8 +37,8 @@ TEST(PictureImageLayerTest, PaintContentsToDisplayList) {
image_canvas->clear(SK_ColorRED);
SkPaint blue_paint;
blue_paint.setColor(SK_ColorBLUE);
- image_canvas->drawRectCoords(0.f, 0.f, 100.f, 100.f, blue_paint);
- image_canvas->drawRectCoords(100.f, 100.f, 200.f, 200.f, blue_paint);
+ image_canvas->drawRect({0.f, 0.f, 100.f, 100.f}, blue_paint);
f(malita) 2017/02/24 21:37:19 I find initializer lists fragile. Is that LTRB or
reed1 2017/02/24 21:39:02 We are using these internally now as well. There i
+ image_canvas->drawRect({100.f, 100.f, 200.f, 200.f}, blue_paint);
layer->SetImage(image_surface->makeImageSnapshot());
layer->SetBounds(gfx::Size(layer_rect.width(), layer_rect.height()));
« no previous file with comments | « no previous file | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698