DescriptionFrom the stack trace, it appears that the ShaderClearHelper is getting cleaned up when the BackendIO object is destroyed. The BackendIO is holding a ref to the ShaderClearHelper, so there is a race between when BackendIO gets cleaned up and when we drop the ref ourselves.
This CL moves the callback to hold a WeakRef to the ShaderClearHelper which should better handle the cleanup. We don't need to pass refs into the callback because we know the callback has executed by the time we drop the ref in the ShaderCacheFactory.
BUG=251742
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207956
Patch Set 1 #Patch Set 2 : #Messages
Total messages: 4 (0 generated)
|