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/GrVkPipeline.h b/src/gpu/vk/GrVkPipeline.h index 0e818ed..bec4aeb 100644 --- a/src/gpu/vk/GrVkPipeline.h +++ b/src/gpu/vk/GrVkPipeline.h
@@ -37,6 +37,11 @@ static void SetDynamicState(GrVkGpu*, GrVkCommandBuffer*, const GrPipeline&); +#ifdef SK_TRACE_VK_RESOURCES + void dumpInfo() const override { + SkDebugf("GrVkPipeline: %d (%d refs)\n", fPipeline, this->getRefCnt()); + } +#endif private: GrVkPipeline(VkPipeline pipeline) : INHERITED(), fPipeline(pipeline) {}