diff options
author | robertphillips <robertphillips@google.com> | 2016-08-23 06:39:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-23 06:39:35 -0700 |
commit | 5eca3e187e9a584f3c8162b04b452a8412e4665a (patch) | |
tree | 9881020e3f9993a5cc1f7a73455c369f6babd9e8 /experimental | |
parent | 08197b22656c1b1200b0ac7b50e247b998a6db11 (diff) |
Cleanup use of legacy SkSurface creation methods a bit
This CL cleans up some remaining uses of the old API
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2223023002
Committed: https://skia.googlesource.com/skia/+/f21cd16228c20927fa4e9b937d6951471cfaa37a
Review-Url: https://codereview.chromium.org/2223023002
Diffstat (limited to 'experimental')
-rw-r--r-- | experimental/GLFWTest/glfw_main.cpp | 2 |
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() { |