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

Side by Side Diff: src/gpu/vk/GrVkGpu.cpp

Issue 1834953003: got Vulkan compiling on Linux again (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: fixed indentation Created 4 years, 9 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/GrVkExtensions.h ('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 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrVkGpu.h" 8 #include "GrVkGpu.h"
9 9
10 #include "GrContextOptions.h" 10 #include "GrContextOptions.h"
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 if (!GrSampleCountToVkSampleCount(1, &vkSamples)) { 699 if (!GrSampleCountToVkSampleCount(1, &vkSamples)) {
700 return 0; 700 return 0;
701 } 701 }
702 702
703 const VkImageCreateInfo imageCreateInfo = { 703 const VkImageCreateInfo imageCreateInfo = {
704 VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, // sType 704 VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO, // sType
705 NULL, // pNext 705 NULL, // pNext
706 0, // VkImageCreateFlags 706 0, // VkImageCreateFlags
707 VK_IMAGE_TYPE_2D, // VkImageType 707 VK_IMAGE_TYPE_2D, // VkImageType
708 pixelFormat, // VkFormat 708 pixelFormat, // VkFormat
709 { w, h, 1 }, // VkExtent3D 709 { (uint32_t) w, (uint32_t) h, 1 }, // VkExtent3D
710 1, // mipLevels 710 1, // mipLevels
711 1, // arrayLayers 711 1, // arrayLayers
712 vkSamples, // samples 712 vkSamples, // samples
713 imageTiling, // VkImageTiling 713 imageTiling, // VkImageTiling
714 usageFlags, // VkImageUsageFlags 714 usageFlags, // VkImageUsageFlags
715 VK_SHARING_MODE_EXCLUSIVE, // VkSharingMode 715 VK_SHARING_MODE_EXCLUSIVE, // VkSharingMode
716 0, // queueFamilyCount 716 0, // queueFamilyCount
717 0, // pQueueFamilyIndices 717 0, // pQueueFamilyIndices
718 initialLayout // initialLayout 718 initialLayout // initialLayout
719 }; 719 };
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 int set_a_break_pt_here = 9; 1422 int set_a_break_pt_here = 9;
1423 aglSwapBuffers(aglGetCurrentContext()); 1423 aglSwapBuffers(aglGetCurrentContext());
1424 #elif defined(SK_BUILD_FOR_WIN32) 1424 #elif defined(SK_BUILD_FOR_WIN32)
1425 SwapBuf(); 1425 SwapBuf();
1426 int set_a_break_pt_here = 9; 1426 int set_a_break_pt_here = 9;
1427 SwapBuf(); 1427 SwapBuf();
1428 #endif 1428 #endif
1429 #endif 1429 #endif
1430 } 1430 }
1431 1431
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkExtensions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698