Index: tools/viewer/sk_app/Window.cpp |
diff --git a/tools/viewer/sk_app/Window.cpp b/tools/viewer/sk_app/Window.cpp |
index dc0bf995d00cb9a32a6c0f857d56c75db7705c5d..47053be5afc5a503f398316238bdda317fd94ead 100644 |
--- a/tools/viewer/sk_app/Window.cpp |
+++ b/tools/viewer/sk_app/Window.cpp |
@@ -53,7 +53,7 @@ |
} |
void Window::onPaint() { |
- sk_sp<SkSurface> backbuffer = fWindowContext->getBackbufferSurface(); |
+ SkSurface* backbuffer = fWindowContext->getBackbufferSurface(); |
if (backbuffer) { |
// draw into the canvas of this surface |
SkCanvas* canvas = backbuffer->getCanvas(); |
@@ -66,6 +66,7 @@ |
} else { |
// try recreating testcontext |
} |
+ |
} |
void Window::onResize(uint32_t w, uint32_t h) { |