Some fixes around GrContext::abandonContext:
authorbsalomon <bsalomon@google.com>
Tue, 29 Jul 2014 15:01:52 +0000 (08:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 29 Jul 2014 15:01:52 +0000 (08:01 -0700)
commit944bcf0acb78f8f9da01e991f1307629959e338a
tree9d56b2135580afe730789576b7817877746d384f
parente6dfba868c19b00562f8c733b9bf37dd4ec9e68c
Some fixes around GrContext::abandonContext:

Fix debug crash when GrResourceCache is destroyed after GrContext is abandoned while GrTextures are in the exlusive list.

Notify debug GL context that GL resources are expected to remain undeleted when context is destroyed after being abandoned.

Stop leaking program cache entries when context is abandoned.

R=robertphillips@google.com

Author: bsalomon@google.com

Review URL: https://codereview.chromium.org/422323002
13 files changed:
include/gpu/GrContextFactory.h
include/gpu/GrTexture.h
include/gpu/gl/GrGLInterface.h
include/gpu/gl/SkDebugGLContext.h
include/gpu/gl/SkGLContextHelper.h
src/gpu/GrContext.cpp
src/gpu/GrTexture.cpp
src/gpu/gl/GrGpuGL_program.cpp
src/gpu/gl/SkGLContextHelper.cpp
src/gpu/gl/debug/GrDebugGL.cpp
src/gpu/gl/debug/GrDebugGL.h
src/gpu/gl/debug/GrGLCreateDebugInterface.cpp
src/gpu/gl/debug/SkDebugGLContext.cpp