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

Unified Diff: tools/viewer/sk_app/android/VulkanWindowContext_android.cpp

Issue 1944413005: More refactoring for Viewer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix up Android Created 4 years, 7 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
Index: tools/viewer/sk_app/android/VulkanWindowContext_android.cpp
diff --git a/tools/viewer/android/VulkanTestContext_android.cpp b/tools/viewer/sk_app/android/VulkanWindowContext_android.cpp
similarity index 84%
rename from tools/viewer/android/VulkanTestContext_android.cpp
rename to tools/viewer/sk_app/android/VulkanWindowContext_android.cpp
index 58dbcb2843d84b590c4b68389de6e776cbe2c9c5..1ef994aa3f348f6fb33bc6f3eff9eb8c8aaa6071 100644
--- a/tools/viewer/android/VulkanTestContext_android.cpp
+++ b/tools/viewer/sk_app/android/VulkanWindowContext_android.cpp
@@ -6,12 +6,14 @@
* found in the LICENSE file.
*/
-#include "VulkanTestContext_android.h"
+#include "VulkanWindowContext_android.h"
#include "vk/GrVkInterface.h"
#include "vk/GrVkUtil.h"
-VkSurfaceKHR VulkanTestContext::createVkSurface(VkInstance instance, void* platformData) {
+namespace sk_app {
+
+VkSurfaceKHR VulkanWindowContext::createVkSurface(VkInstance instance, void* platformData) {
static PFN_vkCreateAndroidSurfaceKHR createAndroidSurfaceKHR = nullptr;
if (!createAndroidSurfaceKHR) {
createAndroidSurfaceKHR = (PFN_vkCreateAndroidSurfaceKHR)vkGetInstanceProcAddr(instance,
@@ -37,7 +39,9 @@ VkSurfaceKHR VulkanTestContext::createVkSurface(VkInstance instance, void* platf
return (VK_SUCCESS == res) ? surface : VK_NULL_HANDLE;
}
-bool VulkanTestContext::canPresent(VkInstance instance, VkPhysicalDevice physDev,
+bool VulkanWindowContext::canPresent(VkInstance instance, VkPhysicalDevice physDev,
uint32_t queueFamilyIndex) {
return true;
}
+
+} // namespace sk_app
« no previous file with comments | « tools/viewer/sk_app/android/VulkanWindowContext_android.h ('k') | tools/viewer/sk_app/android/Window_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698