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

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

Issue 2078483002: Start using GrGpuCommandBuffer in GrDrawTarget. (Closed) Base URL: https://skia.googlesource.com/skia.git@memoryWAR
Patch Set: remove errant lines Created 4 years, 6 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/gl/GrGLGpuCommandBuffer.h ('k') | src/gpu/vk/GrVkCommandBuffer.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 * 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 "GrVkCaps.h" 8 #include "GrVkCaps.h"
9 9
10 #include "GrVkUtil.h" 10 #include "GrVkUtil.h"
(...skipping 13 matching lines...) Expand all
24 fSRGBSupport = true; // always available in Vulkan 24 fSRGBSupport = true; // always available in Vulkan
25 fNPOTTextureTileSupport = true; // always available in Vulkan 25 fNPOTTextureTileSupport = true; // always available in Vulkan
26 fTwoSidedStencilSupport = true; // always available in Vulkan 26 fTwoSidedStencilSupport = true; // always available in Vulkan
27 fStencilWrapOpsSupport = true; // always available in Vulkan 27 fStencilWrapOpsSupport = true; // always available in Vulkan
28 fDiscardRenderTargetSupport = false; //TODO: figure this out 28 fDiscardRenderTargetSupport = false; //TODO: figure this out
29 fReuseScratchTextures = true; //TODO: figure this out 29 fReuseScratchTextures = true; //TODO: figure this out
30 fGpuTracingSupport = false; //TODO: figure this out 30 fGpuTracingSupport = false; //TODO: figure this out
31 fCompressedTexSubImageSupport = false; //TODO: figure this out 31 fCompressedTexSubImageSupport = false; //TODO: figure this out
32 fOversizedStencilSupport = false; //TODO: figure this out 32 fOversizedStencilSupport = false; //TODO: figure this out
33 33
34 fUseDrawInsteadOfClear = false; //TODO: figure this out 34 fUseDrawInsteadOfClear = false;
35 35
36 fMapBufferFlags = kNone_MapFlags; //TODO: figure this out 36 fMapBufferFlags = kNone_MapFlags; //TODO: figure this out
37 fBufferMapThreshold = SK_MaxS32; //TODO: figure this out 37 fBufferMapThreshold = SK_MaxS32; //TODO: figure this out
38 38
39 fMaxRenderTargetSize = 4096; // minimum required by spec 39 fMaxRenderTargetSize = 4096; // minimum required by spec
40 fMaxTextureSize = 4096; // minimum required by spec 40 fMaxTextureSize = 4096; // minimum required by spec
41 fMaxColorSampleCount = 4; // minimum required by spec 41 fMaxColorSampleCount = 4; // minimum required by spec
42 fMaxStencilSampleCount = 4; // minimum required by spec 42 fMaxStencilSampleCount = 4; // minimum required by spec
43 43
44 fShaderCaps.reset(new GrGLSLCaps(contextOptions)); 44 fShaderCaps.reset(new GrGLSLCaps(contextOptions));
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 void GrVkCaps::ConfigInfo::init(const GrVkInterface* interface, 238 void GrVkCaps::ConfigInfo::init(const GrVkInterface* interface,
239 VkPhysicalDevice physDev, 239 VkPhysicalDevice physDev,
240 VkFormat format) { 240 VkFormat format) {
241 VkFormatProperties props; 241 VkFormatProperties props;
242 memset(&props, 0, sizeof(VkFormatProperties)); 242 memset(&props, 0, sizeof(VkFormatProperties));
243 GR_VK_CALL(interface, GetPhysicalDeviceFormatProperties(physDev, format, &pr ops)); 243 GR_VK_CALL(interface, GetPhysicalDeviceFormatProperties(physDev, format, &pr ops));
244 InitConfigFlags(props.linearTilingFeatures, &fLinearFlags); 244 InitConfigFlags(props.linearTilingFeatures, &fLinearFlags);
245 InitConfigFlags(props.optimalTilingFeatures, &fOptimalFlags); 245 InitConfigFlags(props.optimalTilingFeatures, &fOptimalFlags);
246 } 246 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpuCommandBuffer.h ('k') | src/gpu/vk/GrVkCommandBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698