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

Unified Diff: cc/layers/picture_image_layer_unittest.cc

Issue 2716013002: don't use deprecated helper methods on SkCanvas (Closed)
Patch Set: rebase 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..0a9f7a10e49ea69dcf2aa89cdb616c09d9af673a 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(SkRect::MakeWH(100, 100), blue_paint);
+ image_canvas->drawRect(SkRect::MakeLTRB(100, 100, 200, 200), 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