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

Unified Diff: cc/tiles/tile_manager_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/resources/resource_provider.cc ('k') | cc/trees/layer_tree_host_pixeltest_blending.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile_manager_unittest.cc
diff --git a/cc/tiles/tile_manager_unittest.cc b/cc/tiles/tile_manager_unittest.cc
index 29d24557ba1c153cd24bb1e3937b56eb0594b131..ba8f369d6345e5a87e162c6c2bb2e02f25986ba2 100644
--- a/cc/tiles/tile_manager_unittest.cc
+++ b/cc/tiles/tile_manager_unittest.cc
@@ -1744,8 +1744,8 @@ TEST_F(TileManagerTest, LowResHasNoImage) {
SCOPED_TRACE(resolutions[i]);
// Make a RasterSource that will draw a blue bitmap image.
- skia::RefPtr<SkSurface> surface = skia::AdoptRef(
- SkSurface::NewRasterN32Premul(size.width(), size.height()));
+ sk_sp<SkSurface> surface =
+ SkSurface::MakeRasterN32Premul(size.width(), size.height());
ASSERT_NE(surface, nullptr);
surface->getCanvas()->clear(SK_ColorBLUE);
skia::RefPtr<SkImage> blue_image =
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | cc/trees/layer_tree_host_pixeltest_blending.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698