diff options
author | robertphillips <robertphillips@google.com> | 2016-08-01 05:53:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-01 05:53:23 -0700 |
commit | 12e9662cf796c7c1bd1f6e247691d8603335e57f (patch) | |
tree | 6ee536e15cb7ff494dd8123ba3ce596d21ca07dc /example | |
parent | f5b675efbe6f8255d08a9e822ad5774cbd53c827 (diff) |
Remove some ancillary users of SkSurface::MakeRenderTargetDirect
calved off of: https://codereview.chromium.org/2176333002/ (Remove SkSurface::MakeRenderTargetDirect)
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2198433003
Review-Url: https://codereview.chromium.org/2198433003
Diffstat (limited to 'example')
-rw-r--r-- | example/SkiaSDLExample.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/example/SkiaSDLExample.cpp b/example/SkiaSDLExample.cpp index 0cc3402d71..da5f2dc9c1 100644 --- a/example/SkiaSDLExample.cpp +++ b/example/SkiaSDLExample.cpp @@ -206,15 +206,14 @@ int main(int argc, char** argv) { GrGLint buffer; GR_GL_GetIntegerv(interface, GR_GL_FRAMEBUFFER_BINDING, &buffer); desc.fRenderTargetHandle = buffer; - SkAutoTUnref<GrRenderTarget> - renderTarget(grContext->textureProvider()->wrapBackendRenderTarget(desc)); // setup SkSurface // To use distance field text, use commented out SkSurfaceProps instead // SkSurfaceProps props(SkSurfaceProps::kUseDeviceIndependentFonts_Flag, // SkSurfaceProps::kLegacyFontHost_InitType); SkSurfaceProps props(SkSurfaceProps::kLegacyFontHost_InitType); - SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTargetDirect(renderTarget, &props)); + + sk_sp<SkSurface> surface(SkSurface::MakeFromBackendRenderTarget(grContext, desc, &props)); SkCanvas* canvas = surface->getCanvas(); |