commit | 7ec92413307c9da43c013d1e4e15716a44059810 | [log] [tgz] |
---|---|---|
author | jvanverth <jvanverth@google.com> | Wed Jul 06 09:24:57 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Jul 06 09:24:57 2016 -0700 |
tree | e3df46375257bcf8951f07959580e34b5a797947 | |
parent | d5fd2ff49067efebcd7e28fdc787ec21b2176152 [diff] [blame] |
Add resource tracking output and command buffer recycling BUG=skia:5042 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2115993002 Review-Url: https://codereview.chromium.org/2115993002
diff --git a/src/gpu/vk/GrVkBuffer.h b/src/gpu/vk/GrVkBuffer.h index 985b586..bb053cc 100644 --- a/src/gpu/vk/GrVkBuffer.h +++ b/src/gpu/vk/GrVkBuffer.h
@@ -57,6 +57,11 @@ Resource(VkBuffer buf, const GrVkAlloc& alloc, Type type) : INHERITED(), fBuffer(buf), fAlloc(alloc), fType(type) {} +#ifdef SK_TRACE_VK_RESOURCES + void dumpInfo() const override { + SkDebugf("GrVkBuffer: %d (%d refs)\n", fBuffer, this->getRefCnt()); + } +#endif VkBuffer fBuffer; GrVkAlloc fAlloc; Type fType;