Coverage Report

Created: 2024-05-20 07:14

/src/skia/src/gpu/ganesh/vk/GrVkDescriptorSet.cpp
Line
Count
Source (jump to first uncovered line)
1
/*
2
* Copyright 2016 Google Inc.
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#include "src/gpu/ganesh/vk/GrVkDescriptorSet.h"
9
10
#include "src/gpu/ganesh/vk/GrVkDescriptorPool.h"
11
#include "src/gpu/ganesh/vk/GrVkGpu.h"
12
#include "src/gpu/ganesh/vk/GrVkResourceProvider.h"
13
14
GrVkDescriptorSet::GrVkDescriptorSet(GrVkGpu* gpu,
15
                                     VkDescriptorSet descSet,
16
                                     GrVkDescriptorPool* pool,
17
                                     GrVkDescriptorSetManager::Handle handle)
18
    : INHERITED(gpu)
19
    , fDescSet(descSet)
20
    , fPool(pool)
21
0
    , fHandle(handle) {
22
0
    fPool->ref();
23
0
}
24
25
0
void GrVkDescriptorSet::freeGPUData() const {
26
0
    fPool->unref();
27
0
}
28
29
0
void GrVkDescriptorSet::onRecycle() const {
30
0
    fGpu->resourceProvider().recycleDescriptorSet(this, fHandle);
31
0
}
32