Home
last modified time | relevance | path

Searched refs:GrBackendApi (Results 1 – 25 of 68) sorted by relevance

123

/external/skia/src/gpu/ganesh/
DGrBackendSurface.cpp48 case GrBackendApi::kOpenGL: in GrBackendFormat()
53 case GrBackendApi::kVulkan: in GrBackendFormat()
58 case GrBackendApi::kMetal: in GrBackendFormat()
63 case GrBackendApi::kDirect3D: in GrBackendFormat()
68 case GrBackendApi::kDawn: in GrBackendFormat()
72 case GrBackendApi::kMock: in GrBackendFormat()
106 : fBackend(GrBackendApi::kOpenGL) in GrBackendFormat()
112 if (this->isValid() && GrBackendApi::kOpenGL == fBackend) { in asGLFormat()
119 if (this->isValid() && GrBackendApi::kOpenGL == fBackend) { in asGLFormatEnum()
135 : fBackend(GrBackendApi::kVulkan) in GrBackendFormat()
[all …]
DGrBackendUtils.cpp35 case GrBackendApi::kOpenGL: { in GrBackendFormatToCompressionType()
53 case GrBackendApi::kVulkan: { in GrBackendFormatToCompressionType()
71 case GrBackendApi::kMetal: { in GrBackendFormatToCompressionType()
78 case GrBackendApi::kDirect3D: { in GrBackendFormatToCompressionType()
92 case GrBackendApi::kDawn: { in GrBackendFormatToCompressionType()
95 case GrBackendApi::kMock: { in GrBackendFormatToCompressionType()
104 case GrBackendApi::kOpenGL: { in GrBackendFormatBytesPerBlock()
112 case GrBackendApi::kVulkan: { in GrBackendFormatBytesPerBlock()
121 case GrBackendApi::kMetal: { in GrBackendFormatBytesPerBlock()
128 case GrBackendApi::kDirect3D: { in GrBackendFormatBytesPerBlock()
[all …]
DGrBackendSemaphore.cpp14 if (fIsInitialized && GrBackendApi::kDirect3D == fBackend) { in ~GrBackendSemaphore()
22 SkASSERT(GrBackendApi::kDirect3D == fBackend); in assignD3DFenceInfo()
31 if (fIsInitialized && GrBackendApi::kDirect3D == fBackend) { in getD3DFenceInfo()
48 case GrBackendApi::kOpenGL: in operator =()
53 case GrBackendApi::kVulkan: in operator =()
58 case GrBackendApi::kMetal: in operator =()
63 case GrBackendApi::kDirect3D: in operator =()
DGrContextThreadSafeProxy.cpp34 GrContextThreadSafeProxy::GrContextThreadSafeProxy(GrBackendApi backend, in GrContextThreadSafeProxy()
65 if (GrBackendApi::kOpenGL != backendFormat.backend() && willUseGLFBO0) { in createCharacterization()
70 if (GrBackendApi::kVulkan != backendFormat.backend() && in createCharacterization()
113 if (GrBackendApi::kVulkan == backendFormat.backend()) { in createCharacterization()
114 if (GrBackendApi::kVulkan != fBackend) { in createCharacterization()
186 GrBackendApi backend, in Make()
DGrSurfaceInfo.cpp16 : fBackend(GrBackendApi::kDirect3D) in GrSurfaceInfo()
26 if (this->isValid() && fBackend == GrBackendApi::kDirect3D) { in ~GrSurfaceInfo()
34 if (!this->isValid() || fBackend != GrBackendApi::kDirect3D) { in getD3DSurfaceInfo()
DGrDDLContext.cpp43 if (this->backend() == GrBackendApi::kMetal || in recordProgramInfo()
44 this->backend() == GrBackendApi::kDirect3D || in recordProgramInfo()
45 this->backend() == GrBackendApi::kDawn) { in recordProgramInfo()
DGrAHardwareBufferUtils.cpp74 GrBackendApi backend = dContext->backend(); in GetBackendFormat()
76 if (backend == GrBackendApi::kOpenGL) { in GetBackendFormat()
105 } else if (backend == GrBackendApi::kVulkan) { in GetBackendFormat()
335 SkASSERT(dContext->backend() == GrBackendApi::kVulkan); in make_vk_backend_texture()
552 if (GrBackendApi::kOpenGL == dContext->backend()) { in can_import_protected_content()
559 } else if (GrBackendApi::kVulkan == dContext->backend()) { in can_import_protected_content()
583 if (GrBackendApi::kOpenGL == dContext->backend()) { in MakeBackendTexture()
592 SkASSERT(GrBackendApi::kVulkan == dContext->backend()); in MakeBackendTexture()
/external/skia/include/gpu/
DGrSurfaceInfo.h36 : fBackend(GrBackendApi::kOpenGL) in GrSurfaceInfo()
45 : fBackend(GrBackendApi::kVulkan) in GrSurfaceInfo()
57 : fBackend(GrBackendApi::kMetal) in GrSurfaceInfo()
66 : fBackend(GrBackendApi::kDawn) in GrSurfaceInfo()
74 : fBackend(GrBackendApi::kMock) in GrSurfaceInfo()
85 GrBackendApi backend() const { return fBackend; } in backend()
93 if (!this->isValid() || fBackend != GrBackendApi::kOpenGL) { in getGLSurfaceInfo()
102 if (!this->isValid() || fBackend != GrBackendApi::kVulkan) { in getVkSurfaceInfo()
114 if (!this->isValid() || fBackend != GrBackendApi::kMetal) { in getMtlSurfaceInfo()
123 if (!this->isValid() || fBackend != GrBackendApi::kDawn) { in getDawnSurfaceInfo()
[all …]
DGrBackendSemaphore.h35 : fBackend(GrBackendApi::kOpenGL), fGLSync(nullptr), fIsInitialized(false) {} in GrBackendSemaphore()
46 fBackend = GrBackendApi::kOpenGL; in initGL()
53 fBackend = GrBackendApi::kVulkan; in initVulkan()
60 if (!fIsInitialized || GrBackendApi::kVulkan != fBackend) { in vkSemaphore()
71 fBackend = GrBackendApi::kMetal; in initMetal()
79 if (!fIsInitialized || GrBackendApi::kMetal != fBackend) { in mtlSemaphore()
86 if (!fIsInitialized || GrBackendApi::kMetal != fBackend) { in mtlValue()
96 fBackend = GrBackendApi::kDirect3D; in initDirect3D()
105 if (!fIsInitialized || GrBackendApi::kOpenGL != fBackend) { in glSync()
121 GrBackendApi fBackend;
DGrBackendDrawableInfo.h22 , fBackend(GrBackendApi::kVulkan) in GrBackendDrawableInfo()
28 GrBackendApi backend() const { return fBackend; } in backend()
31 if (this->isValid() && GrBackendApi::kVulkan == fBackend) { in getVkDrawableInfo()
40 GrBackendApi fBackend;
DGrTypes.h92 enum class GrBackendApi : unsigned { enum
115 typedef GrBackendApi GrBackend;
117 static constexpr GrBackendApi kMetal_GrBackend = GrBackendApi::kMetal;
118 static constexpr GrBackendApi kVulkan_GrBackend = GrBackendApi::kVulkan;
119 static constexpr GrBackendApi kMock_GrBackend = GrBackendApi::kMock;
DGrBackendSurface.h133 GrBackendApi backend() const { return fBackend; } in backend()
237 GrBackendApi fBackend = GrBackendApi::kMock;
333 GrBackendApi backend() const {return fBackend; } in backend()
451 GrBackendApi fBackend;
540 GrBackendApi backend() const {return fBackend; } in backend()
640 GrBackendApi fBackend;
/external/skia/tools/gpu/
DGrContextFactory.h77 static GrBackendApi ContextTypeBackend(ContextType type) { in ContextTypeBackend()
80 return GrBackendApi::kVulkan; in ContextTypeBackend()
82 return GrBackendApi::kMetal; in ContextTypeBackend()
84 return GrBackendApi::kDirect3D; in ContextTypeBackend()
86 return GrBackendApi::kDawn; in ContextTypeBackend()
88 return GrBackendApi::kMock; in ContextTypeBackend()
90 return GrBackendApi::kOpenGL; in ContextTypeBackend()
163 GrBackendApi fBackend;
186 GrBackendApi backend() const { return GrContextFactory::ContextTypeBackend(fType); } in backend()
193 SkASSERT(GrBackendApi::kOpenGL == this->backend()); in glContext()
DGrContextFactory.cpp92 GrBackendApi api = context.fGrContext->backend(); in abandonContexts()
93 bool requiresEarlyAbandon = api == GrBackendApi::kVulkan || api == GrBackendApi::kDawn; in abandonContexts()
167 GrBackendApi backend = ContextTypeBackend(type); in getContextInfoInternal()
170 case GrBackendApi::kOpenGL: { in getContextInfoInternal()
236 case GrBackendApi::kVulkan: { in getContextInfoInternal()
261 case GrBackendApi::kMetal: { in getContextInfoInternal()
273 case GrBackendApi::kDirect3D: { in getContextInfoInternal()
285 case GrBackendApi::kDawn: { in getContextInfoInternal()
295 case GrBackendApi::kMock: { in getContextInfoInternal()
DMemoryCache.cpp65 void MemoryCache::writeShadersToDisk(const char* path, GrBackendApi api) { in writeShadersToDisk()
66 if (GrBackendApi::kOpenGL != api && GrBackendApi::kVulkan != api) { in writeShadersToDisk()
74 if (GrBackendApi::kVulkan == api) { in writeShadersToDisk()
107 const char* ext = GrBackendApi::kOpenGL == api ? "frag" : "frag.spv"; in writeShadersToDisk()
114 const char* ext = GrBackendApi::kOpenGL == api ? "vert" : "vert.spv"; in writeShadersToDisk()
/external/skia/dm/
DDMGpuTestProcs.cpp30 return GrBackendApi::kOpenGL == GrContextFactory::ContextTypeBackend(type); in IsGLContextType()
33 return GrBackendApi::kVulkan == GrContextFactory::ContextTypeBackend(type); in IsVulkanContextType()
36 return GrBackendApi::kMetal == GrContextFactory::ContextTypeBackend(type); in IsMetalContextType()
39 return GrBackendApi::kDirect3D == GrContextFactory::ContextTypeBackend(type); in IsDirect3DContextType()
42 return GrBackendApi::kDawn == GrContextFactory::ContextTypeBackend(type); in IsDawnContextType()
/external/skia/include/core/
DSkDrawable.h21 enum class GrBackendApi : unsigned;
83 std::unique_ptr<GpuDrawHandler> snapGpuDrawHandler(GrBackendApi backendApi, in snapGpuDrawHandler()
146 virtual std::unique_ptr<GpuDrawHandler> onSnapGpuDrawHandler(GrBackendApi, const SkMatrix&, in onSnapGpuDrawHandler() argument
153 virtual std::unique_ptr<GpuDrawHandler> onSnapGpuDrawHandler(GrBackendApi, const SkMatrix&) { in onSnapGpuDrawHandler() argument
/external/skia/tests/
DBazelTestRunner.cpp43 return GrBackendApi::kOpenGL == sk_gpu_test::GrContextFactory::ContextTypeBackend(type); in IsGLContextType()
46 return GrBackendApi::kVulkan == sk_gpu_test::GrContextFactory::ContextTypeBackend(type); in IsVulkanContextType()
49 return GrBackendApi::kMetal == sk_gpu_test::GrContextFactory::ContextTypeBackend(type); in IsMetalContextType()
52 return GrBackendApi::kDirect3D == sk_gpu_test::GrContextFactory::ContextTypeBackend(type); in IsDirect3DContextType()
55 return GrBackendApi::kDawn == sk_gpu_test::GrContextFactory::ContextTypeBackend(type); in IsDawnContextType()
DGrFinishedFlushTest.cpp92 dContext->backend() == GrBackendApi::kVulkan || in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
93 ((dContext->backend() == GrBackendApi::kOpenGL) && fenceSupport) || in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
94 ((dContext->backend() == GrBackendApi::kMetal) && fenceSupport) || in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
95 dContext->backend() == GrBackendApi::kDawn || in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
96 dContext->backend() == GrBackendApi::kDirect3D; in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
DBackendAllocationTest.cpp178 case GrBackendApi::kOpenGL: in isBGRA8()
184 case GrBackendApi::kVulkan: { in isBGRA8()
193 case GrBackendApi::kMetal: in isBGRA8()
199 case GrBackendApi::kDirect3D: { in isBGRA8()
208 case GrBackendApi::kDawn: { in isBGRA8()
217 case GrBackendApi::kMock: { in isBGRA8()
231 case GrBackendApi::kOpenGL: in isRGB()
237 case GrBackendApi::kVulkan: { in isRGB()
246 case GrBackendApi::kMetal: in isRGB()
248 case GrBackendApi::kDirect3D: in isRGB()
[all …]
DPromiseImageTest.cpp124 GrBackendApi api, in check_all_flushed_but_not_synced()
128 if (api == GrBackendApi::kVulkan || api == GrBackendApi::kDirect3D) { in check_all_flushed_but_not_synced()
244 GrBackendApi api = sk_gpu_test::GrContextFactory::ContextTypeBackend(contextType); in DEF_GANESH_TEST()
245 if (api == GrBackendApi::kVulkan || api == GrBackendApi::kDawn || in DEF_GANESH_TEST()
246 api == GrBackendApi::kDirect3D) { in DEF_GANESH_TEST()
/external/skia/tools/gpu/mtl/
DMtlTestContext.h20 GrBackendApi backend() override { return GrBackendApi::kMetal; } in backend()
/external/skia/tools/gpu/d3d/
DD3DTestContext.h20 virtual GrBackendApi backend() override { return GrBackendApi::kDirect3D; } in backend()
/external/skia/tools/gpu/mock/
DMockTestContext.cpp22 GrBackendApi backend() override { return GrBackendApi::kMock; } in backend()
/external/skia/tools/gpu/vk/
DVkTestContext.h23 GrBackendApi backend() override { return GrBackendApi::kVulkan; } in backend()

123