• Home
  • Raw
  • Download

Lines Matching refs:sk_app

45 using namespace sk_app;
167 const char *kBackendTypeStrings[sk_app::Window::kBackendTypeCount] = {
175 static sk_app::Window::BackendType get_backend_type(const char* str) { in get_backend_type()
178 return sk_app::Window::kVulkan_BackendType; in get_backend_type()
182 return sk_app::Window::kNativeGL_BackendType; in get_backend_type()
184 return sk_app::Window::kRaster_BackendType; in get_backend_type()
187 return sk_app::Window::kRaster_BackendType; in get_backend_type()
252 , fBackendType(sk_app::Window::kNativeGL_BackendType) in Viewer()
370 sk_app::Window::BackendType newBackend = fBackendType; in Viewer()
372 if (sk_app::Window::kRaster_BackendType == fBackendType) { in Viewer()
373 newBackend = sk_app::Window::kNativeGL_BackendType; in Viewer()
375 } else if (sk_app::Window::kNativeGL_BackendType == fBackendType) { in Viewer()
376 newBackend = sk_app::Window::kVulkan_BackendType; in Viewer()
379 newBackend = sk_app::Window::kRaster_BackendType; in Viewer()
383 if (sk_app::Window::kRaster_BackendType == fBackendType) { in Viewer()
384 newBackend = sk_app::Window::kNativeGL_BackendType; in Viewer()
385 } else if (sk_app::Window::kNativeGL_BackendType == fBackendType) { in Viewer()
386 newBackend = sk_app::Window::kRaster_BackendType; in Viewer()
667 void Viewer::setBackend(sk_app::Window::BackendType backendType) { in setBackend()
675 if (sk_app::Window::kVulkan_BackendType == fBackendType || in setBackend()
676 sk_app::Window::kNativeGL_BackendType == fBackendType) { in setBackend()
1012 ImGui::RadioButton("Raster", &newBackend, sk_app::Window::kRaster_BackendType); in drawImGui()
1014 ImGui::RadioButton("OpenGL", &newBackend, sk_app::Window::kNativeGL_BackendType); in drawImGui()
1017 ImGui::RadioButton("Vulkan", &newBackend, sk_app::Window::kVulkan_BackendType); in drawImGui()
1021 this->setBackend(static_cast<sk_app::Window::BackendType>(newBackend)); in drawImGui()
1284 if (sk_app::Window::kRaster_BackendType == fBackendType) { in updateUIState()
1389 for (int i = 0; i < sk_app::Window::kBackendTypeCount; i++) { in onUIStateChanged()
1392 fBackendType = (sk_app::Window::BackendType)i; in onUIStateChanged()
1447 bool Viewer::onKey(sk_app::Window::Key key, sk_app::Window::InputState state, uint32_t modifiers) { in onKey()