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

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: 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
Index: cc/tiles/tile_manager_unittest.cc
diff --git a/cc/tiles/tile_manager_unittest.cc b/cc/tiles/tile_manager_unittest.cc
index 745fee4ca853a48a593c4839a87b8a14602f1d63..40effcef0bc049cd7cfb85f0929993d17d22f5e6 100644
--- a/cc/tiles/tile_manager_unittest.cc
+++ b/cc/tiles/tile_manager_unittest.cc
@@ -1743,8 +1743,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 =

Powered by Google App Engine
This is Rietveld 408576698