aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/SkiaSDLExample.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'example/SkiaSDLExample.cpp')
-rw-r--r--example/SkiaSDLExample.cpp6
1 files changed, 3 insertions, 3 deletions
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<const GrGLInterface> interface(GrGLCreateNativeInterface());
+ sk_sp<const GrGLInterface> interface(GrGLCreateNativeInterface());
// To use NVPR, comment this out
interface.reset(GrGLInterfaceRemoveNVPR(interface));
SkASSERT(interface);
// setup contexts
- SkAutoTUnref<GrContext> grContext(GrContext::Create(kOpenGL_GrBackend,
- (GrBackendContext)interface.get()));
+ sk_sp<GrContext> 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