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

Unified Diff: platform_tools/android/apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.cpp

Issue 2220933004: Revert of Cleanup use of legacy SkSurface creation methods a bit (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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: platform_tools/android/apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.cpp
diff --git a/platform_tools/android/apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.cpp b/platform_tools/android/apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.cpp
index de38919fe5d313c2ecc7eca0d5c662d6eecff344..d1de529674104e39e6853e53c9d50c6e50e2ac84 100644
--- a/platform_tools/android/apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.cpp
+++ b/platform_tools/android/apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.cpp
@@ -37,8 +37,9 @@
SkSurfaceProps surfaceProps(SkSurfaceProps::kUseDeviceIndependentFonts_Flag,
kUnknown_SkPixelGeometry);
// TODO: Check to see if we can keep the surface between draw calls.
- sk_sp<SkSurface> surface(
- SkSurface::MakeFromBackendRenderTarget(grContext, desc, nullptr, &surfaceProps));
+ SkAutoTUnref<SkSurface> surface(
+ SkSurface::NewFromBackendRenderTarget(
+ grContext, desc, &surfaceProps));
if (surface) {
SkCanvas* canvas = surface->getCanvas();
SkASSERT(canvas);
« no previous file with comments | « experimental/GLFWTest/glfw_main.cpp ('k') | platform_tools/android/examples/hello_skia_app/jni/helloskia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698