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

Unified Diff: cc/trees/layer_tree_host_pixeltest_blending.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/tiles/tile_manager_unittest.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_pixeltest_blending.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_blending.cc b/cc/trees/layer_tree_host_pixeltest_blending.cc
index a53963ea03319de5844f8abc90dff68011ea52cc..9d356c48ea5e7fa3612733813aacbdc74ca1d4ee 100644
--- a/cc/trees/layer_tree_host_pixeltest_blending.cc
+++ b/cc/trees/layer_tree_host_pixeltest_blending.cc
@@ -131,8 +131,8 @@ class LayerTreeHostBlendingPixelTest : public LayerTreeHostPixelResourceTest {
// Draw the backdrop with horizontal lanes.
const int kLaneWidth = width;
const int kLaneHeight = height / kCSSTestColorsCount;
- skia::RefPtr<SkSurface> backing_store =
- skia::AdoptRef(SkSurface::NewRasterN32Premul(width, height));
+ sk_sp<SkSurface> backing_store =
+ SkSurface::MakeRasterN32Premul(width, height);
SkCanvas* canvas = backing_store->getCanvas();
canvas->clear(SK_ColorTRANSPARENT);
for (int i = 0; i < kCSSTestColorsCount; ++i) {
@@ -158,8 +158,8 @@ class LayerTreeHostBlendingPixelTest : public LayerTreeHostPixelResourceTest {
mask->SetIsMask(true);
mask->SetBounds(bounds);
- skia::RefPtr<SkSurface> surface = skia::AdoptRef(
- SkSurface::NewRasterN32Premul(bounds.width(), bounds.height()));
+ sk_sp<SkSurface> surface =
+ SkSurface::MakeRasterN32Premul(bounds.width(), bounds.height());
SkCanvas* canvas = surface->getCanvas();
SkPaint paint;
paint.setColor(SK_ColorWHITE);
« no previous file with comments | « cc/tiles/tile_manager_unittest.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698