| 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);
|
|
|