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

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

Issue 1978573003: Add OpenGL context to Viewer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase to ToT 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_win.h" 9 #include "../VulkanWindowContext.h"
10 #include "Window_win.h"
10 11
11 #include "vk/GrVkInterface.h" 12 #include "vk/GrVkInterface.h"
12 #include "vk/GrVkUtil.h" 13 #include "vk/GrVkUtil.h"
13 14
14 namespace sk_app { 15 namespace sk_app {
15 16
16 // Platform dependant call 17 // Platform dependant call
17 VkSurfaceKHR VulkanWindowContext::createVkSurface(VkInstance instance, void* pla tformData) { 18 VkSurfaceKHR VulkanWindowContext::createVkSurface(VkInstance instance, void* pla tformData) {
18 static PFN_vkCreateWin32SurfaceKHR createWin32SurfaceKHR = nullptr; 19 static PFN_vkCreateWin32SurfaceKHR createWin32SurfaceKHR = nullptr;
19 if (!createWin32SurfaceKHR) { 20 if (!createWin32SurfaceKHR) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 getPhysicalDeviceWin32PresentationSupportKHR = 54 getPhysicalDeviceWin32PresentationSupportKHR =
54 (PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR) vkGetInstancePr ocAddr(instance, 55 (PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR) vkGetInstancePr ocAddr(instance,
55 "vkGetPhysicalDeviceWin32Presen tationSupportKHR"); 56 "vkGetPhysicalDeviceWin32Presen tationSupportKHR");
56 } 57 }
57 58
58 VkBool32 check = getPhysicalDeviceWin32PresentationSupportKHR(physDev, queue FamilyIndex); 59 VkBool32 check = getPhysicalDeviceWin32PresentationSupportKHR(physDev, queue FamilyIndex);
59 return (VK_FALSE != check); 60 return (VK_FALSE != check);
60 } 61 }
61 62
62 } // namespace sk_app 63 } // 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