Lines Matching full:gpu
8 // This is a GPU-backend specific test. It relies on static intializers to work
14 #include "include/gpu/GrBackendSurface.h"
15 #include "include/gpu/GrDirectContext.h"
16 #include "include/gpu/vk/GrVkTypes.h"
17 #include "include/gpu/vk/GrVkVulkan.h"
18 #include "src/gpu/GrDirectContextPriv.h"
19 #include "src/gpu/GrRenderTarget.h"
20 #include "src/gpu/GrTexture.h"
21 #include "src/gpu/vk/GrVkCaps.h"
22 #include "src/gpu/vk/GrVkGpu.h"
23 #include "src/gpu/vk/GrVkMemory.h"
25 #include "tools/gpu/GrContextFactory.h"
26 #include "tools/gpu/ManagedBackendTexture.h"
35 GrGpu* gpu = dContext->priv().getGpu(); in wrap_tex_test() local
50 sk_sp<GrTexture> tex = gpu->wrapBackendTexture(origBackendTex, kBorrow_GrWrapOwnership, in wrap_tex_test()
60 sk_sp<GrTexture> tex = gpu->wrapBackendTexture( in wrap_tex_test()
63 tex = gpu->wrapBackendTexture( in wrap_tex_test()
73 sk_sp<GrTexture> tex = gpu->wrapBackendTexture( in wrap_tex_test()
76 tex = gpu->wrapBackendTexture( in wrap_tex_test()
85 sk_sp<GrTexture> tex = gpu->wrapBackendTexture( in wrap_tex_test()
96 GrGpu* gpu = dContext->priv().getGpu(); in wrap_rt_test() local
100 GrBackendFormat format = gpu->caps()->getDefaultBackendFormat(ct, GrRenderable::kYes); in wrap_rt_test()
101 if (sampleCnt > gpu->caps()->maxRenderTargetSampleCount(format)) { in wrap_rt_test()
106 gpu->createTestingOnlyBackendRenderTarget({kW, kH}, ct, sampleCnt); in wrap_rt_test()
114 sk_sp<GrRenderTarget> rt = gpu->wrapBackendRenderTarget(origBackendRT); in wrap_rt_test()
122 rt = gpu->wrapBackendRenderTarget(backendRT); in wrap_rt_test()
132 rt = gpu->wrapBackendRenderTarget(backendRT); in wrap_rt_test()
136 gpu->deleteTestingOnlyBackendRenderTarget(origBackendRT); in wrap_rt_test()
141 GrGpu* gpu = dContext->priv().getGpu(); in wrap_trt_test() local
154 sk_sp<GrTexture> tex = gpu->wrapRenderableBackendTexture( in wrap_trt_test()
163 tex = gpu->wrapRenderableBackendTexture(backendTex, 1, kBorrow_GrWrapOwnership, in wrap_trt_test()
166 tex = gpu->wrapRenderableBackendTexture(backendTex, 1, kAdopt_GrWrapOwnership, in wrap_trt_test()
176 tex = gpu->wrapRenderableBackendTexture(backendTex, 1, kBorrow_GrWrapOwnership, in wrap_trt_test()
179 tex = gpu->wrapRenderableBackendTexture(backendTex, 1, kAdopt_GrWrapOwnership, in wrap_trt_test()
189 tex = gpu->wrapRenderableBackendTexture(origBackendTex, 2, kBorrow_GrWrapOwnership, in wrap_trt_test()
198 tex = gpu->wrapRenderableBackendTexture(backendTex, 1, kAdopt_GrWrapOwnership, in wrap_trt_test()