DescriptionFix skia ganesh resources leak.
Currently, ~GrContextForWebGraphicsContext3D() calls
GrContext::contextDestroyed() before destructing a context provider. It causes
gpu resource leak because contextDestroyed() abandons all gpu resources, so
GrContext destructor cannot have a chance to clean gpu resources.
chromium doesn't need to use GrContext::contextDestroyed() because chromium
controls the lifecycle of a context provider. However, when a context provider
is lost, chromium must call GrContext::contextLost().
In addition, TestInProcessContextProvider must destruct GrContext before
destructing gpu::GLInProcessContext.
BUG=360107
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262153
Patch Set 1 #
Messages
Total messages: 13 (0 generated)
|