| OLD | NEW |
| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 // Register the callback | 105 // Register the callback |
| 106 GR_VK_CALL_ERRCHECK(this->vkInterface(), CreateDebugReportCallbackEXT(fV
kInstance, | 106 GR_VK_CALL_ERRCHECK(this->vkInterface(), CreateDebugReportCallbackEXT(fV
kInstance, |
| 107 &callbackCreateInfo, nullptr, &fCallback)); | 107 &callbackCreateInfo, nullptr, &fCallback)); |
| 108 } | 108 } |
| 109 #endif | 109 #endif |
| 110 | 110 |
| 111 fCompiler = shaderc_compiler_initialize(); | 111 fCompiler = shaderc_compiler_initialize(); |
| 112 | 112 |
| 113 fVkCaps.reset(new GrVkCaps(options, this->vkInterface(), backendCtx->fPhysic
alDevice, | 113 fVkCaps.reset(new GrVkCaps(options, this->vkInterface(), backendCtx->fPhysic
alDevice, |
| 114 backendCtx->fFeatures)); | 114 backendCtx->fFeatures, backendCtx->fExtensions)); |
| 115 fCaps.reset(SkRef(fVkCaps.get())); | 115 fCaps.reset(SkRef(fVkCaps.get())); |
| 116 | 116 |
| 117 VK_CALL(GetPhysicalDeviceMemoryProperties(backendCtx->fPhysicalDevice, &fPhy
sDevMemProps)); | 117 VK_CALL(GetPhysicalDeviceMemoryProperties(backendCtx->fPhysicalDevice, &fPhy
sDevMemProps)); |
| 118 | 118 |
| 119 const VkCommandPoolCreateInfo cmdPoolInfo = { | 119 const VkCommandPoolCreateInfo cmdPoolInfo = { |
| 120 VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO, // sType | 120 VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO, // sType |
| 121 nullptr, // pNext | 121 nullptr, // pNext |
| 122 VK_COMMAND_POOL_CREATE_TRANSIENT_BIT, // CmdPoolCreateFlags | 122 VK_COMMAND_POOL_CREATE_TRANSIENT_BIT, // CmdPoolCreateFlags |
| 123 backendCtx->fQueueFamilyIndex, // queueFamilyIndex | 123 backendCtx->fQueueFamilyIndex, // queueFamilyIndex |
| 124 }; | 124 }; |
| (...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1431 int set_a_break_pt_here = 9; | 1431 int set_a_break_pt_here = 9; |
| 1432 aglSwapBuffers(aglGetCurrentContext()); | 1432 aglSwapBuffers(aglGetCurrentContext()); |
| 1433 #elif defined(SK_BUILD_FOR_WIN32) | 1433 #elif defined(SK_BUILD_FOR_WIN32) |
| 1434 SwapBuf(); | 1434 SwapBuf(); |
| 1435 int set_a_break_pt_here = 9; | 1435 int set_a_break_pt_here = 9; |
| 1436 SwapBuf(); | 1436 SwapBuf(); |
| 1437 #endif | 1437 #endif |
| 1438 #endif | 1438 #endif |
| 1439 } | 1439 } |
| 1440 | 1440 |
| OLD | NEW |