commit | 609e1a9293adfca9f510c5681dacfcedee4ff9d6 | [log] [tgz] |
---|---|---|
author | Greg Daniel <egdaniel@google.com> | Fri Dec 11 14:18:19 2020 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Dec 11 20:07:00 2020 +0000 |
tree | 02fc3983d1f8164a62e0f785197d176a946febd1 | |
parent | 4b6f54aaa5da88d0d156f08780200f112faebafa [diff] [blame] |
Store command buffer usages to GrSurface's on GrVkCommandBuffer. Bug: skia:11038 Change-Id: I3a862ae7620a6453a6c0b1b45b97868bf6abf73f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/342918 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrManagedResource.cpp b/src/gpu/GrManagedResource.cpp index 06490fd..4620de5 100644 --- a/src/gpu/GrManagedResource.cpp +++ b/src/gpu/GrManagedResource.cpp
@@ -38,7 +38,7 @@ return; } if (fOwningTexture) { - if (fOwningTexture->resourcePriv().hasRef()) { + if (fOwningTexture->resourcePriv().hasRefOrCommandBufferUsage()) { // Wait for the texture to become idle in the cache to call the procs. return; }