Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: tools/viewer/Viewer.cpp

Issue 2226413002: Clean up Xlib viewer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix non-vulkan build Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/viewer/sk_app/VulkanWindowContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/viewer/Viewer.cpp
diff --git a/tools/viewer/Viewer.cpp b/tools/viewer/Viewer.cpp
index da329e0b3e2bb1d519fdd761a63d807543d0125f..6f33d2c202db7e4d556e37453c6abd4e18ba26e9 100644
--- a/tools/viewer/Viewer.cpp
+++ b/tools/viewer/Viewer.cpp
@@ -136,6 +136,10 @@ Viewer::Viewer(int argc, char** argv, void* platformData)
fBackendType = get_backend_type(FLAGS_backend[0]);
fWindow = Window::CreateNativeWindow(platformData);
fWindow->attach(fBackendType, DisplayParams());
+#if defined(SK_VULKAN) && defined(SK_BUILD_FOR_UNIX)
+ // Vulkan doesn't seem to handle a single refresh properly on Linux
+ fRefresh = (sk_app::Window::kVulkan_BackendType == fBackendType);
+#endif
// register callbacks
fCommands.attach(fWindow);
@@ -211,6 +215,10 @@ Viewer::Viewer(int argc, char** argv, void* platformData)
}
#endif
fWindow->attach(fBackendType, DisplayParams());
+#if defined(SK_VULKAN) && defined(SK_BUILD_FOR_UNIX)
+ // Vulkan doesn't seem to handle a single refresh properly on Linux
+ fRefresh = (sk_app::Window::kVulkan_BackendType == fBackendType);
+#endif
this->updateTitle();
fWindow->inval();
« no previous file with comments | « no previous file | tools/viewer/sk_app/VulkanWindowContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698