diff options
author | 2016-08-08 09:17:20 -0700 | |
---|---|---|
committer | 2016-08-08 09:17:20 -0700 | |
commit | 0652baa23ec2ea9e1bcdf686bf1e1118b186b42c (patch) | |
tree | 2a78f6f32d92181359719b0506d516e45000a8c8 /experimental/GLFWTest/glfw_main.cpp | |
parent | 8b1d32c8d017c84828ed65af38cd1f1e7075ce08 (diff) |
Revert of Cleanup use of legacy SkSurface creation methods a bit (patchset #2 id:20001 of https://codereview.chromium.org/2223023002/ )
Reason for revert:
webkit_headless!
Original issue's description:
> Cleanup use of legacy SkSurface creation methods a bit
>
> This:
> removes the SK_SUPPORT_LEGACY_NEW_SURFACE_API flag from the bzl build
> 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
TBR=benjaminwagner@google.com,egdaniel@google.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Review-Url: https://codereview.chromium.org/2220933004
Diffstat (limited to 'experimental/GLFWTest/glfw_main.cpp')
-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 21ec33def3..a8ca7ea97e 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::MakeFromBackendRenderTarget(sContext, desc, nullptr, nullptr).release(); + sSurface = SkSurface::NewFromBackendRenderTarget(sContext, desc, NULL); } static void cleanup_skia() { |