Lines Matching defs:gpu
8 #include "src/gpu/vk/GrVkCommandPool.h"
11 #include "src/gpu/GrDirectContextPriv.h"
12 #include "src/gpu/vk/GrVkCommandBuffer.h"
13 #include "src/gpu/vk/GrVkGpu.h"
15 GrVkCommandPool* GrVkCommandPool::Create(GrVkGpu* gpu) {
17 if (gpu->protectedContext()) {
25 gpu->queueIndex(), // queueFamilyIndex
29 GR_VK_CALL_RESULT(gpu, result, CreateCommandPool(gpu->device(), &cmdPoolInfo, nullptr, &pool));
34 GrVkPrimaryCommandBuffer* primaryCmdBuffer = GrVkPrimaryCommandBuffer::Create(gpu, pool);
36 GR_VK_CALL(gpu->vkInterface(), DestroyCommandPool(gpu->device(), pool, nullptr));
40 return new GrVkCommandPool(gpu, pool, primaryCmdBuffer);
43 GrVkCommandPool::GrVkCommandPool(GrVkGpu* gpu, VkCommandPool commandPool,
45 : GrVkManagedResource(gpu)
49 gpu->vkCaps().maxPerPoolCachedSecondaryCommandBuffers()) {
53 GrVkGpu* gpu) {
59 result.reset(GrVkSecondaryCommandBuffer::Create(gpu, this));
79 void GrVkCommandPool::reset(GrVkGpu* gpu) {
85 SkDEBUGCODE(VkResult result = )GR_VK_CALL(gpu->vkInterface(),
86 ResetCommandPool(gpu->device(), fCommandPool, 0));
91 TRACE_EVENT0("skia.gpu", TRACE_FUNC);