Lines Matching refs:sk_app
56 using namespace sk_app;
85 const char* kBackendTypeStrings[sk_app::Window::kBackendTypeCount] = {
99 static sk_app::Window::BackendType get_backend_type(const char* str) { in get_backend_type()
102 return sk_app::Window::kVulkan_BackendType; in get_backend_type()
107 return sk_app::Window::kANGLE_BackendType; in get_backend_type()
112 return sk_app::Window::kMetal_BackendType; in get_backend_type()
116 return sk_app::Window::kNativeGL_BackendType; in get_backend_type()
118 return sk_app::Window::kRaster_BackendType; in get_backend_type()
121 return sk_app::Window::kRaster_BackendType; in get_backend_type()
205 , fBackendType(sk_app::Window::kNativeGL_BackendType)
332 sk_app::Window::BackendType newBackend = (sk_app::Window::BackendType)( in __anonc7f885cc0e02()
333 (fBackendType + 1) % sk_app::Window::kBackendTypeCount); in __anonc7f885cc0e02()
336 if (newBackend == sk_app::Window::kVulkan_BackendType) { in __anonc7f885cc0e02()
337 newBackend = (sk_app::Window::BackendType)((newBackend + 1) % in __anonc7f885cc0e02()
338 sk_app::Window::kBackendTypeCount); in __anonc7f885cc0e02()
339 } else if (fBackendType == sk_app::Window::kVulkan_BackendType) { in __anonc7f885cc0e02()
340 newBackend = sk_app::Window::kVulkan_BackendType; in __anonc7f885cc0e02()
1012 void Viewer::setBackend(sk_app::Window::BackendType backendType) { in setBackend()
1467 ImGui::RadioButton("Raster", &newBackend, sk_app::Window::kRaster_BackendType); in drawImGui()
1469 ImGui::RadioButton("OpenGL", &newBackend, sk_app::Window::kNativeGL_BackendType); in drawImGui()
1472 ImGui::RadioButton("ANGLE", &newBackend, sk_app::Window::kANGLE_BackendType); in drawImGui()
1476 ImGui::RadioButton("Vulkan", &newBackend, sk_app::Window::kVulkan_BackendType); in drawImGui()
1480 ImGui::RadioButton("Metal", &newBackend, sk_app::Window::kMetal_BackendType); in drawImGui()
1484 this->setBackend(static_cast<sk_app::Window::BackendType>(newBackend)); in drawImGui()
2046 if (sk_app::Window::kRaster_BackendType == fBackendType) { in updateUIState()
2119 for (int i = 0; i < sk_app::Window::kBackendTypeCount; i++) { in onUIStateChanged()
2122 fBackendType = (sk_app::Window::BackendType)i; in onUIStateChanged()
2167 bool Viewer::onKey(sk_app::Window::Key key, sk_app::Window::InputState state, uint32_t modifiers) { in onKey()