aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-08-23 06:39:35 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-23 06:39:35 -0700
commit5eca3e187e9a584f3c8162b04b452a8412e4665a (patch)
tree9881020e3f9993a5cc1f7a73455c369f6babd9e8 /experimental
parent08197b22656c1b1200b0ac7b50e247b998a6db11 (diff)
Cleanup use of legacy SkSurface creation methods a bit
Diffstat (limited to 'experimental')
-rw-r--r--experimental/GLFWTest/glfw_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/experimental/GLFWTest/glfw_main.cpp b/experimental/GLFWTest/glfw_main.cpp
index a8ca7ea97e..21ec33def3 100644
--- a/experimental/GLFWTest/glfw_main.cpp
+++ b/experimental/GLFWTest/glfw_main.cpp
@@ -42,7 +42,7 @@ static void init_skia(int w, int h) {
desc.fStencilBits = 0;
desc.fRenderTargetHandle = 0; // assume default framebuffer
- sSurface = SkSurface::NewFromBackendRenderTarget(sContext, desc, NULL);
+ sSurface = SkSurface::MakeFromBackendRenderTarget(sContext, desc, nullptr, nullptr).release();
}
static void cleanup_skia() {