Add GrContext::releaseAndAbandonContext()
authorbsalomon <bsalomon@google.com>
Fri, 1 Apr 2016 18:54:31 +0000 (11:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 1 Apr 2016 18:54:31 +0000 (11:54 -0700)
commit6e2aad4e9f6280aa2b710e7324458fdc6d699ec5
tree77bf09c049b5afe4aaccd66b7926050c53bbebff
parent895f3f0544ce38d35999771754cbb1d876c14b5a
Add GrContext::releaseAndAbandonContext()

Like abandonContext() this disconnects the GrContext from the underlying 3D API. However, unlike abandonContext it first frees all allocated GPU resources.

BUG=skia:5142
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1852733002

Review URL: https://codereview.chromium.org/1852733002
15 files changed:
dm/DMGpuSupport.h
dm/DMSrcSink.cpp
include/gpu/GrContext.h
src/gpu/GrContext.cpp
src/gpu/GrGpu.cpp
src/gpu/GrGpu.h
src/gpu/gl/GrGLGpu.cpp
src/gpu/gl/GrGLGpu.h
src/gpu/gl/GrGLPathRendering.cpp
src/gpu/gl/GrGLPathRendering.h
tests/GrContextAbandonTest.cpp [new file with mode: 0644]
tools/flags/SkCommonFlags.cpp
tools/flags/SkCommonFlags.h
tools/gpu/GrContextFactory.cpp
tools/gpu/GrContextFactory.h