aboutsummaryrefslogtreecommitdiffhomepage
path: root/example
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2016-11-04 13:02:54 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-07 15:17:32 +0000
commit2db83612576d64935bd88747cf9855e79cad70d4 (patch)
tree2e9cbd612abc2a52dc1bb8c594d328ddee2b93fa /example
parent12313f072b3563d652a789e28140f70b48e57e03 (diff)
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 <bungeman@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'example')
-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