/external/skia/tools/gpu/d3d/ |
D | D3DTestContext.cpp | 20 GrD3DBackendContext backendContext; in Create() local 25 backendContext = sharedContext->getD3DBackendContext(); in Create() 28 if (!sk_gpu_test::CreateD3DBackendContext(&backendContext)) { in Create() 34 return new D3DTestContextImpl(backendContext, ownsContext); in Create() 56 D3DTestContextImpl(const GrD3DBackendContext& backendContext, bool ownsContext) in D3DTestContextImpl() argument 57 : D3DTestContext(backendContext, ownsContext) { in D3DTestContextImpl()
|
/external/skia/tools/gpu/vk/ |
D | VkTestContext.cpp | 25 GrVkBackendContext backendContext; in Create() local 32 backendContext = sharedContext->getVkBackendContext(); in Create() 54 if (!sk_gpu_test::CreateVkBackendContext(getProc, &backendContext, extensions, in Create() 63 backendContext.fInstance, "vkDestroyDebugReportCallbackEXT"); in Create() 66 return new VkTestContextImpl(backendContext, extensions, features, ownsContext, in Create() 114 VkTestContextImpl(const GrVkBackendContext& backendContext, const GrVkExtensions* extensions, in VkTestContextImpl() argument 118 : VkTestContext(backendContext, extensions, features, ownsContext, debugCallback, in VkTestContextImpl()
|
/external/skia/src/gpu/vk/ |
D | GrVkGpu.cpp | 58 sk_sp<GrGpu> GrVkGpu::Make(const GrVkBackendContext& backendContext, in Make() argument 60 if (backendContext.fInstance == VK_NULL_HANDLE || in Make() 61 backendContext.fPhysicalDevice == VK_NULL_HANDLE || in Make() 62 backendContext.fDevice == VK_NULL_HANDLE || in Make() 63 backendContext.fQueue == VK_NULL_HANDLE) { in Make() 66 if (!backendContext.fGetProc) { in Make() 72 backendContext.fGetProc("vkEnumerateInstanceVersion", in Make() 87 backendContext.fGetProc("vkGetPhysicalDeviceProperties", in Make() 88 backendContext.fInstance, in Make() 95 localGetPhysicalDeviceProperties(backendContext.fPhysicalDevice, &physDeviceProperties); in Make() [all …]
|
/external/skia/tools/gpu/mtl/ |
D | MtlTestContext.mm | 23 GrMtlBackendContext backendContext = {}; 26 backendContext = sharedContextImpl->getMtlBackendContext(); 48 backendContext.fDevice.retain((GrMTLHandle)device.get()); 50 backendContext.fQueue.retain((GrMTLHandle)queue.get()); 53 return new MtlTestContextImpl(backendContext);
|
/external/skia/tools/sk_app/ |
D | VulkanWindowContext.cpp | 64 GrVkBackendContext backendContext; in initializeContext() local 67 if (!sk_gpu_test::CreateVkBackendContext(getProc, &backendContext, &extensions, &features, in initializeContext() 79 fInstance = backendContext.fInstance; in initializeContext() 80 fPhysicalDevice = backendContext.fPhysicalDevice; in initializeContext() 81 fDevice = backendContext.fDevice; in initializeContext() 82 fGraphicsQueueIndex = backendContext.fGraphicsQueueIndex; in initializeContext() 83 fGraphicsQueue = backendContext.fQueue; in initializeContext() 87 backendContext.fGetProc("vkGetPhysicalDeviceProperties", in initializeContext() 88 backendContext.fInstance, in initializeContext() 95 localGetPhysicalDeviceProperties(backendContext.fPhysicalDevice, &physDeviceProperties); in initializeContext() [all …]
|
D | MetalWindowContext.mm | 83 GrMtlBackendContext backendContext = {}; 84 backendContext.fDevice.retain((GrMTLHandle)fDevice.get()); 85 backendContext.fQueue.retain((GrMTLHandle)fQueue.get()); 88 backendContext.fBinaryArchive.retain((__bridge GrMTLHandle)fPipelineArchive); 91 fContext = GrDirectContext::MakeMetal(backendContext, fDisplayParams.fGrContextOptions);
|
/external/skqp/src/gpu/vk/ |
D | GrVkGpu.cpp | 59 sk_sp<GrGpu> GrVkGpu::Make(const GrVkBackendContext& backendContext, in Make() argument 61 if (backendContext.fInstance == VK_NULL_HANDLE || in Make() 62 backendContext.fPhysicalDevice == VK_NULL_HANDLE || in Make() 63 backendContext.fDevice == VK_NULL_HANDLE || in Make() 64 backendContext.fQueue == VK_NULL_HANDLE) { in Make() 67 if (!backendContext.fGetProc) { in Make() 73 backendContext.fGetProc("vkEnumerateInstanceVersion", in Make() 88 backendContext.fGetProc("vkGetPhysicalDeviceProperties", in Make() 89 backendContext.fInstance, in Make() 96 localGetPhysicalDeviceProperties(backendContext.fPhysicalDevice, &physDeviceProperties); in Make() [all …]
|
/external/skqp/tools/gpu/vk/ |
D | VkTestContext.cpp | 150 GrVkBackendContext backendContext; in Create() local 157 backendContext = sharedContext->getVkBackendContext(); in Create() 179 if (!sk_gpu_test::CreateVkBackendContext(getProc, &backendContext, extensions, in Create() 188 backendContext.fInstance, "vkDestroyDebugReportCallbackEXT"); in Create() 191 return new VkTestContextImpl(backendContext, extensions, features, ownsContext, in Create() 242 VkTestContextImpl(const GrVkBackendContext& backendContext, const GrVkExtensions* extensions, in VkTestContextImpl() argument 246 : VkTestContext(backendContext, extensions, features, ownsContext, debugCallback, in VkTestContextImpl()
|
/external/skqp/tools/sk_app/ |
D | VulkanWindowContext.cpp | 63 GrVkBackendContext backendContext; in initializeContext() local 66 if (!sk_gpu_test::CreateVkBackendContext(getProc, &backendContext, &extensions, &features, in initializeContext() 78 fInstance = backendContext.fInstance; in initializeContext() 79 fPhysicalDevice = backendContext.fPhysicalDevice; in initializeContext() 80 fDevice = backendContext.fDevice; in initializeContext() 81 fGraphicsQueueIndex = backendContext.fGraphicsQueueIndex; in initializeContext() 82 fGraphicsQueue = backendContext.fQueue; in initializeContext() 86 backendContext.fGetProc("vkGetPhysicalDeviceProperties", in initializeContext() 87 backendContext.fInstance, in initializeContext() 94 localGetPhysicalDeviceProperties(backendContext.fPhysicalDevice, &physDeviceProperties); in initializeContext() [all …]
|
/external/skia/src/gpu/ |
D | GrDirectContext.cpp | 1067 sk_sp<GrDirectContext> GrDirectContext::MakeVulkan(const GrVkBackendContext& backendContext) { in MakeVulkan() argument 1069 return MakeVulkan(backendContext, defaultOptions); in MakeVulkan() 1072 sk_sp<GrDirectContext> GrDirectContext::MakeVulkan(const GrVkBackendContext& backendContext, in MakeVulkan() argument 1076 direct->fGpu = GrVkGpu::Make(backendContext, options, direct.get()); in MakeVulkan() 1087 sk_sp<GrDirectContext> GrDirectContext::MakeMetal(const GrMtlBackendContext& backendContext) { in MakeMetal() argument 1089 return MakeMetal(backendContext, defaultOptions); in MakeMetal() 1092 sk_sp<GrDirectContext> GrDirectContext::MakeMetal(const GrMtlBackendContext& backendContext, in MakeMetal() argument 1096 direct->fGpu = GrMtlTrampoline::MakeGpu(backendContext, options, direct.get()); in MakeMetal() 1115 GrMtlBackendContext backendContext = {}; in MakeMetal() local 1116 backendContext.fDevice.reset(device); in MakeMetal() [all …]
|
/external/skia/tools/sk_app/win/ |
D | D3D12WindowContext_win.cpp | 80 GrD3DBackendContext backendContext; in initializeContext() local 81 sk_gpu_test::CreateD3DBackendContext(&backendContext); in initializeContext() 82 fDevice = backendContext.fDevice; in initializeContext() 83 fQueue = backendContext.fQueue; in initializeContext() 85 fContext = GrDirectContext::MakeDirect3D(backendContext, fDisplayParams.fGrContextOptions); in initializeContext()
|
/external/skqp/src/gpu/ |
D | GrDirectContext.cpp | 153 sk_sp<GrContext> GrContext::MakeVulkan(const GrVkBackendContext& backendContext) { in MakeVulkan() argument 156 return MakeVulkan(backendContext, defaultOptions); in MakeVulkan() 162 sk_sp<GrContext> GrContext::MakeVulkan(const GrVkBackendContext& backendContext, in MakeVulkan() argument 168 context->fGpu = GrVkGpu::Make(backendContext, options, context.get()); in MakeVulkan()
|
/external/skia/src/gpu/mtl/ |
D | GrMtlTrampoline.mm | 18 sk_sp<GrGpu> GrMtlTrampoline::MakeGpu(const GrMtlBackendContext& backendContext, 21 return GrMtlGpu::Make(backendContext, options, direct);
|
/external/skia/src/gpu/d3d/ |
D | GrD3DGpu.cpp | 42 sk_sp<GrGpu> GrD3DGpu::Make(const GrD3DBackendContext& backendContext, in Make() argument 44 sk_sp<GrD3DMemoryAllocator> memoryAllocator = backendContext.fMemoryAllocator; in Make() 48 backendContext.fAdapter.get(), backendContext.fDevice.get()); in Make() 55 return sk_sp<GrGpu>(new GrD3DGpu(direct, contextOptions, backendContext, memoryAllocator)); in Make() 68 const GrD3DBackendContext& backendContext, in GrD3DGpu() argument 71 , fDevice(backendContext.fDevice) in GrD3DGpu() 72 , fQueue(backendContext.fQueue) in GrD3DGpu() 79 backendContext.fAdapter.get(), in GrD3DGpu() 80 backendContext.fDevice.get())); in GrD3DGpu()
|
D | GrD3DGpu.h | 30 static sk_sp<GrGpu> Make(const GrD3DBackendContext& backendContext, const GrContextOptions&,
|