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

Unified Diff: cc/trees/layer_tree_host_pixeltest_masks.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
Index: cc/trees/layer_tree_host_pixeltest_masks.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_masks.cc b/cc/trees/layer_tree_host_pixeltest_masks.cc
index 3a6f1278e0aaa01ca007aef69c40c12ae06ad1a0..4b950136cb0ddb955a6dc6194153b1ea1195ea0b 100644
--- a/cc/trees/layer_tree_host_pixeltest_masks.cc
+++ b/cc/trees/layer_tree_host_pixeltest_masks.cc
@@ -102,8 +102,7 @@ TEST_P(LayerTreeHostMasksPixelTest, ImageMaskOfLayer) {
mask->SetIsMask(true);
mask->SetBounds(mask_bounds);
- skia::RefPtr<SkSurface> surface =
- skia::AdoptRef(SkSurface::NewRasterN32Premul(200, 200));
+ sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(200, 200);
SkCanvas* canvas = surface->getCanvas();
canvas->scale(SkIntToScalar(4), SkIntToScalar(4));
MaskContentLayerClient client(mask_bounds);
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_blending.cc ('k') | content/browser/compositor/software_output_device_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698