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

Unified Diff: cc/layers/picture_image_layer_unittest.cc

Issue 1855273002: Update new Surface callsites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: software_output_device was indirectly including skia::refptr, switch to sk_sp<> Created 4 years, 8 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/layers/heads_up_display_layer_impl.cc ('k') | cc/output/gl_renderer.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 fb5c482b827b73f3f47658c8f129a4b3da166d06..fb0f2062466975cde5ef0bbc2f59b4b78249cb42 100644
--- a/cc/layers/picture_image_layer_unittest.cc
+++ b/cc/layers/picture_image_layer_unittest.cc
@@ -29,8 +29,8 @@ TEST(PictureImageLayerTest, PaintContentsToDisplayList) {
unsigned char image_pixels[4 * 200 * 200] = {0};
SkImageInfo info =
SkImageInfo::MakeN32Premul(layer_rect.width(), layer_rect.height());
- skia::RefPtr<SkSurface> image_surface = skia::AdoptRef(
- SkSurface::NewRasterDirect(info, image_pixels, info.minRowBytes()));
+ sk_sp<SkSurface> image_surface =
+ SkSurface::MakeRasterDirect(info, image_pixels, info.minRowBytes());
SkCanvas* image_canvas = image_surface->getCanvas();
image_canvas->clear(SK_ColorRED);
SkPaint blue_paint;
« no previous file with comments | « cc/layers/heads_up_display_layer_impl.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698