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

Side by Side Diff: tools/viewer/sk_app/win/VulkanWindowContext_win.cpp

Issue 1990893002: Revert of Add OpenGL context to Viewer. (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 | « tools/viewer/sk_app/win/VulkanWindowContext_win.h ('k') | tools/viewer/sk_app/win/Window_win.h » ('j') | 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 "../VulkanWindowContext.h" 9 #include "VulkanWindowContext_win.h"
10 #include "Window_win.h"
11 10
12 #include "vk/GrVkInterface.h" 11 #include "vk/GrVkInterface.h"
13 #include "vk/GrVkUtil.h" 12 #include "vk/GrVkUtil.h"
14 13
15 namespace sk_app { 14 namespace sk_app {
16 15
17 // Platform dependant call 16 // Platform dependant call
18 VkSurfaceKHR VulkanWindowContext::createVkSurface(VkInstance instance, void* pla tformData) { 17 VkSurfaceKHR VulkanWindowContext::createVkSurface(VkInstance instance, void* pla tformData) {
19 static PFN_vkCreateWin32SurfaceKHR createWin32SurfaceKHR = nullptr; 18 static PFN_vkCreateWin32SurfaceKHR createWin32SurfaceKHR = nullptr;
20 if (!createWin32SurfaceKHR) { 19 if (!createWin32SurfaceKHR) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 getPhysicalDeviceWin32PresentationSupportKHR = 53 getPhysicalDeviceWin32PresentationSupportKHR =
55 (PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR) vkGetInstancePr ocAddr(instance, 54 (PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR) vkGetInstancePr ocAddr(instance,
56 "vkGetPhysicalDeviceWin32Presen tationSupportKHR"); 55 "vkGetPhysicalDeviceWin32Presen tationSupportKHR");
57 } 56 }
58 57
59 VkBool32 check = getPhysicalDeviceWin32PresentationSupportKHR(physDev, queue FamilyIndex); 58 VkBool32 check = getPhysicalDeviceWin32PresentationSupportKHR(physDev, queue FamilyIndex);
60 return (VK_FALSE != check); 59 return (VK_FALSE != check);
61 } 60 }
62 61
63 } // namespace sk_app 62 } // namespace sk_app
OLDNEW
« no previous file with comments | « tools/viewer/sk_app/win/VulkanWindowContext_win.h ('k') | tools/viewer/sk_app/win/Window_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698