diff options
author | Robert Phillips <robertphillips@google.com> | 2017-11-13 15:48:12 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-14 12:20:02 +0000 |
commit | 5b65a84b990e4ed3b5534cd85167cdc3ed6c820a (patch) | |
tree | 525a1ecceb01c02ed5ee4ba57beb716a26ac8d18 /samplecode/SampleAll.cpp | |
parent | 74c8436f2c34161fc0d506c15aa96c283bd5bc9e (diff) |
Resolve GrSurface/GrSurfaceProxy ref counting issue in GrResourceAllocator
The underlying issue is/was that (given that GrResourceProvider::createApproxTexture can pull a scratch texture out of the resource cache) resources the GrResourceAllocator thought is was controlling could magically be re-assigned behind its back. This CL resolves the issue by having the GrResourceAllocator maintain a strong ref on all the resources it believes it is controlling.
Change-Id: Ibcf49009dc953bd97d882177284eb57490cd5711
Reviewed-on: https://skia-review.googlesource.com/70722
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'samplecode/SampleAll.cpp')
0 files changed, 0 insertions, 0 deletions