From 2db83612576d64935bd88747cf9855e79cad70d4 Mon Sep 17 00:00:00 2001 From: Hal Canary Date: Fri, 4 Nov 2016 13:02:54 -0400 Subject: bench, samples, etc: s/SkAutoTUnref/sk_sp/ GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4437 Change-Id: Ice071684ac8a99e4bb405b4b9be8e8f42c7bac42 Reviewed-on: https://skia-review.googlesource.com/4437 Reviewed-by: Ben Wagner Commit-Queue: Hal Canary --- example/SkiaSDLExample.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'example') diff --git a/example/SkiaSDLExample.cpp b/example/SkiaSDLExample.cpp index 0072f0f595..3aa42b3518 100644 --- a/example/SkiaSDLExample.cpp +++ b/example/SkiaSDLExample.cpp @@ -183,15 +183,15 @@ int main(int argc, char** argv) { glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); // setup GrContext - SkAutoTUnref interface(GrGLCreateNativeInterface()); + sk_sp interface(GrGLCreateNativeInterface()); // To use NVPR, comment this out interface.reset(GrGLInterfaceRemoveNVPR(interface)); SkASSERT(interface); // setup contexts - SkAutoTUnref grContext(GrContext::Create(kOpenGL_GrBackend, - (GrBackendContext)interface.get())); + sk_sp grContext(GrContext::Create(kOpenGL_GrBackend, + (GrBackendContext)interface.get())); SkASSERT(grContext); // Wrap the frame buffer object attached to the screen in a Skia render target so Skia can -- cgit v1.2.3