Index: src/core/SkPictureImageGenerator.cpp |
diff --git a/src/core/SkPictureImageGenerator.cpp b/src/core/SkPictureImageGenerator.cpp |
index f90ac0f1eea5c8072587ffcbcf4c2486810a6276..6f4ffa1f5bb98dc2ab553d0db0cc85011d493646 100644 |
--- a/src/core/SkPictureImageGenerator.cpp |
+++ b/src/core/SkPictureImageGenerator.cpp |
@@ -139,9 +139,8 @@ GrTexture* SkPictureImageGenerator::onGenerateTexture(GrContext* ctx, const SkIR |
// |
// TODO: respect the usage, by possibly creating a different (pow2) surface |
// |
- SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTarget(ctx, SkBudgeted::kYes, |
- surfaceInfo)); |
- if (!surface.get()) { |
+ sk_sp<SkSurface> surface(SkSurface::MakeRenderTarget(ctx, SkBudgeted::kYes, surfaceInfo)); |
+ if (!surface) { |
return nullptr; |
} |