Home
last modified time | relevance | path

Searched refs:backendContext (Results 1 – 19 of 19) sorted by relevance

/third_party/skia/tools/gpu/d3d/
DD3DTestContext.cpp20 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()
/third_party/skia/src/gpu/vk/
DGrVkGpu.cpp58 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 …]
/third_party/skia/tools/gpu/vk/
DVkTestContext.cpp25 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()
/third_party/flutter/skia/src/gpu/vk/
DGrVkGpu.cpp65 sk_sp<GrGpu> GrVkGpu::Make(const GrVkBackendContext& backendContext, in Make() argument
67 if (backendContext.fInstance == VK_NULL_HANDLE || in Make()
68 backendContext.fPhysicalDevice == VK_NULL_HANDLE || in Make()
69 backendContext.fDevice == VK_NULL_HANDLE || in Make()
70 backendContext.fQueue == VK_NULL_HANDLE) { in Make()
73 if (!backendContext.fGetProc) { in Make()
79 backendContext.fGetProc("vkEnumerateInstanceVersion", in Make()
94 backendContext.fGetProc("vkGetPhysicalDeviceProperties", in Make()
95 backendContext.fInstance, in Make()
102 localGetPhysicalDeviceProperties(backendContext.fPhysicalDevice, &physDeviceProperties); in Make()
[all …]
/third_party/flutter/skia/tools/sk_app/
DVulkanWindowContext.cpp63 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 …]
/third_party/skia/tools/sk_app/
DVulkanWindowContext.cpp64 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 …]
DGraphiteMetalWindowContext.mm48 skgpu::mtl::BackendContext backendContext = {};
49 backendContext.fDevice.retain((GrMTLHandle)fDevice.get());
50 backendContext.fQueue.retain((GrMTLHandle)fQueue.get());
51 fGraphiteContext = skgpu::Context::MakeMetal(backendContext);
DMetalWindowContext.mm82 GrMtlBackendContext backendContext = {};
83 backendContext.fDevice.retain((GrMTLHandle)fDevice.get());
84 backendContext.fQueue.retain((GrMTLHandle)fQueue.get());
87 backendContext.fBinaryArchive.retain((__bridge GrMTLHandle)fPipelineArchive);
90 fContext = GrDirectContext::MakeMetal(backendContext, fDisplayParams.fGrContextOptions);
/third_party/skia/tools/gpu/mtl/
DMtlTestContext.mm23 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);
/third_party/flutter/skia/tools/gpu/vk/
DVkTestContext.cpp150 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()
/third_party/skia/tools/graphite/mtl/
DMtlTestContext.mm43 skgpu::mtl::BackendContext backendContext = {};
44 backendContext.fDevice.retain(device.get());
45 backendContext.fQueue.reset([*device newCommandQueue]);
47 return std::unique_ptr<GraphiteTestContext>(new TestContext(backendContext));
/third_party/skia/src/gpu/
DGrDirectContext.cpp1139 sk_sp<GrDirectContext> GrDirectContext::MakeVulkan(const GrVkBackendContext& backendContext) { in MakeVulkan() argument
1141 return MakeVulkan(backendContext, defaultOptions); in MakeVulkan()
1144 sk_sp<GrDirectContext> GrDirectContext::MakeVulkan(const GrVkBackendContext& backendContext, in MakeVulkan() argument
1148 direct->fGpu = GrVkGpu::Make(backendContext, options, direct.get()); in MakeVulkan()
1159 sk_sp<GrDirectContext> GrDirectContext::MakeMetal(const GrMtlBackendContext& backendContext) { in MakeMetal() argument
1161 return MakeMetal(backendContext, defaultOptions); in MakeMetal()
1164 sk_sp<GrDirectContext> GrDirectContext::MakeMetal(const GrMtlBackendContext& backendContext, in MakeMetal() argument
1168 direct->fGpu = GrMtlTrampoline::MakeGpu(backendContext, options, direct.get()); in MakeMetal()
1187 GrMtlBackendContext backendContext = {}; in MakeMetal() local
1188 backendContext.fDevice.reset(device); in MakeMetal()
[all …]
/third_party/skia/tools/sk_app/win/
DD3D12WindowContext_win.cpp80 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()
/third_party/flutter/skia/src/gpu/
DGrLegacyDirectContext.cpp175 sk_sp<GrContext> GrContext::MakeVulkan(const GrVkBackendContext& backendContext) { in MakeVulkan() argument
178 return MakeVulkan(backendContext, defaultOptions); in MakeVulkan()
184 sk_sp<GrContext> GrContext::MakeVulkan(const GrVkBackendContext& backendContext, in MakeVulkan() argument
190 context->fGpu = GrVkGpu::Make(backendContext, options, context.get()); in MakeVulkan()
/third_party/skia/experimental/graphite/src/mtl/
DMtlTrampoline.mm13 sk_sp<skgpu::Gpu> Trampoline::MakeGpu(const BackendContext& backendContext) {
14 return Gpu::Make(backendContext);
/third_party/skia/src/gpu/mtl/
DGrMtlTrampoline.mm18 sk_sp<GrGpu> GrMtlTrampoline::MakeGpu(const GrMtlBackendContext& backendContext,
21 return GrMtlGpu::Make(backendContext, options, direct);
/third_party/skia/experimental/graphite/src/
DContext.cpp28 sk_sp<Context> Context::MakeMetal(const mtl::BackendContext& backendContext) { in MakeMetal() argument
29 sk_sp<Gpu> gpu = mtl::Trampoline::MakeGpu(backendContext); in MakeMetal()
/third_party/skia/src/gpu/d3d/
DGrD3DGpu.cpp42 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()
DGrD3DGpu.h30 static sk_sp<GrGpu> Make(const GrD3DBackendContext& backendContext, const GrContextOptions&,