15 case skgpu::ContextType::kGL:
17 case skgpu::ContextType::kGLES:
19 case skgpu::ContextType::kANGLE_D3D9_ES2:
20 return "ANGLE D3D9 ES2";
21 case skgpu::ContextType::kANGLE_D3D11_ES2:
22 return "ANGLE D3D11 ES2";
23 case skgpu::ContextType::kANGLE_D3D11_ES3:
24 return "ANGLE D3D11 ES3";
25 case skgpu::ContextType::kANGLE_GL_ES2:
26 return "ANGLE GL ES2";
27 case skgpu::ContextType::kANGLE_GL_ES3:
28 return "ANGLE GL ES3";
29 case skgpu::ContextType::kANGLE_Metal_ES2:
30 return "ANGLE Metal ES2";
31 case skgpu::ContextType::kANGLE_Metal_ES3:
32 return "ANGLE Metal ES3";
33 case skgpu::ContextType::kVulkan:
35 case skgpu::ContextType::kMetal:
37 case skgpu::ContextType::kDirect3D:
39 case skgpu::ContextType::kDawn_D3D11:
41 case skgpu::ContextType::kDawn_D3D12:
43 case skgpu::ContextType::kDawn_Metal:
45 case skgpu::ContextType::kDawn_Vulkan:
47 case skgpu::ContextType::kDawn_OpenGL:
49 case skgpu::ContextType::kDawn_OpenGLES:
50 return "Dawn OpenGLES";
51 case skgpu::ContextType::kMock:
75 case ContextType::kDawn_D3D11:
76 case ContextType::kDawn_D3D12:
77 case ContextType::kDawn_Metal:
78 case ContextType::kDawn_OpenGL:
79 case ContextType::kDawn_OpenGLES:
80 case ContextType::kDawn_Vulkan:
94 case skgpu::ContextType::kGL:
95 case skgpu::ContextType::kGLES:
96 case skgpu::ContextType::kANGLE_D3D9_ES2:
97 case skgpu::ContextType::kANGLE_D3D11_ES2:
98 case skgpu::ContextType::kANGLE_D3D11_ES3:
99 case skgpu::ContextType::kANGLE_GL_ES2:
100 case skgpu::ContextType::kANGLE_GL_ES3:
101 case skgpu::ContextType::kANGLE_Metal_ES2:
102 case skgpu::ContextType::kANGLE_Metal_ES3:
105 case ContextType::kVulkan:
108 case ContextType::kMetal:
111 case ContextType::kDirect3D:
114 case ContextType::kDawn_D3D11:
115 case ContextType::kDawn_D3D12:
116 case ContextType::kDawn_Metal:
117 case ContextType::kDawn_Vulkan:
118 case ContextType::kDawn_OpenGL:
119 case ContextType::kDawn_OpenGLES:
122 case ContextType::kMock:
130 case skgpu::ContextType::kGL:
131 case skgpu::ContextType::kGLES:
132 case skgpu::ContextType::kANGLE_D3D9_ES2:
133 case skgpu::ContextType::kANGLE_D3D11_ES2:
134 case skgpu::ContextType::kANGLE_D3D11_ES3:
135 case skgpu::ContextType::kANGLE_GL_ES2:
136 case skgpu::ContextType::kANGLE_GL_ES3:
137 case skgpu::ContextType::kANGLE_Metal_ES2:
138 case skgpu::ContextType::kANGLE_Metal_ES3:
139 case skgpu::ContextType::kDirect3D:
140 return BackendApi::kUnsupported;
142 case ContextType::kVulkan:
143 return BackendApi::kVulkan;
145 case ContextType::kMetal:
146 return BackendApi::kMetal;
148 case ContextType::kDawn_D3D11:
149 case ContextType::kDawn_D3D12:
150 case ContextType::kDawn_Metal:
151 case ContextType::kDawn_Vulkan:
152 case ContextType::kDawn_OpenGL:
153 case ContextType::kDawn_OpenGLES:
154 return BackendApi::kDawn;
156 case ContextType::kMock:
157 return BackendApi::kMock;