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

Side by Side Diff: tools/vulkan/android/VulkanTestContext_android.cpp

Issue 1921963003: Fix vulkan build on linux and android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « src/gpu/vk/GrVkTextureRenderTarget.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2016 Google Inc. 3 * Copyright 2016 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "VulkanTestContext_android.h" 9 #include "VulkanTestContext_android.h"
10 10
(...skipping 14 matching lines...) Expand all
25 reinterpret_cast<ContextPlatformData_ android*>(platformData); 25 reinterpret_cast<ContextPlatformData_ android*>(platformData);
26 VkSurfaceKHR surface; 26 VkSurfaceKHR surface;
27 27
28 VkAndroidSurfaceCreateInfoKHR surfaceCreateInfo; 28 VkAndroidSurfaceCreateInfoKHR surfaceCreateInfo;
29 memset(&surfaceCreateInfo, 0, sizeof(VkAndroidSurfaceCreateInfoKHR)); 29 memset(&surfaceCreateInfo, 0, sizeof(VkAndroidSurfaceCreateInfoKHR));
30 surfaceCreateInfo.sType = VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR; 30 surfaceCreateInfo.sType = VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR;
31 surfaceCreateInfo.pNext = nullptr; 31 surfaceCreateInfo.pNext = nullptr;
32 surfaceCreateInfo.flags = 0; 32 surfaceCreateInfo.flags = 0;
33 surfaceCreateInfo.window = androidPlatformData->fNativeWindow; 33 surfaceCreateInfo.window = androidPlatformData->fNativeWindow;
34 34
35 VkResult res = createAndroidSurfaceKHR(fBackendContext->fInstance, &surfaceC reateInfo, 35 VkResult res = createAndroidSurfaceKHR(instance, &surfaceCreateInfo,
36 nullptr, &surface); 36 nullptr, &surface);
37 return (VK_SUCCESS == res) ? surface : VK_NULL_HANDLE; 37 return (VK_SUCCESS == res) ? surface : VK_NULL_HANDLE;
38 } 38 }
39 39
40 bool VulkanTestContext::canPresent(VkInstance instance, VkPhysicalDevice physDev , 40 bool VulkanTestContext::canPresent(VkInstance instance, VkPhysicalDevice physDev ,
41 uint32_t queueFamilyIndex) { 41 uint32_t queueFamilyIndex) {
42 return true; 42 return true;
43 } 43 }
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkTextureRenderTarget.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698