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

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

Issue 2248703002: Fix copying of data in vulkan testing texture (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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/GrContext.cpp ('k') | src/gpu/vk/GrVkGpu.cpp » ('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 #ifndef GrVkCaps_DEFINED 8 #ifndef GrVkCaps_DEFINED
9 #define GrVkCaps_DEFINED 9 #define GrVkCaps_DEFINED
10 10
(...skipping 19 matching lines...) Expand all
30 VkPhysicalDevice device, uint32_t featureFlags, uint32_t extensionF lags); 30 VkPhysicalDevice device, uint32_t featureFlags, uint32_t extensionF lags);
31 31
32 bool isConfigTexturable(GrPixelConfig config) const override { 32 bool isConfigTexturable(GrPixelConfig config) const override {
33 return SkToBool(ConfigInfo::kTextureable_Flag & fConfigTable[config].fOp timalFlags); 33 return SkToBool(ConfigInfo::kTextureable_Flag & fConfigTable[config].fOp timalFlags);
34 } 34 }
35 35
36 bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const override { 36 bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const override {
37 return SkToBool(ConfigInfo::kRenderable_Flag & fConfigTable[config].fOpt imalFlags); 37 return SkToBool(ConfigInfo::kRenderable_Flag & fConfigTable[config].fOpt imalFlags);
38 } 38 }
39 39
40 bool isConfigTexurableLinearly(GrPixelConfig config) const { 40 bool isConfigTexturableLinearly(GrPixelConfig config) const {
41 return SkToBool(ConfigInfo::kTextureable_Flag & fConfigTable[config].fLi nearFlags); 41 return SkToBool(ConfigInfo::kTextureable_Flag & fConfigTable[config].fLi nearFlags);
42 } 42 }
43 43
44 bool isConfigRenderableLinearly(GrPixelConfig config, bool withMSAA) const { 44 bool isConfigRenderableLinearly(GrPixelConfig config, bool withMSAA) const {
45 return !withMSAA && SkToBool(ConfigInfo::kRenderable_Flag & 45 return !withMSAA && SkToBool(ConfigInfo::kRenderable_Flag &
46 fConfigTable[config].fLinearFlags); 46 fConfigTable[config].fLinearFlags);
47 } 47 }
48 48
49 bool configCanBeDstofBlit(GrPixelConfig config, bool linearTiled) const { 49 bool configCanBeDstofBlit(GrPixelConfig config, bool linearTiled) const {
50 const uint16_t& flags = linearTiled ? fConfigTable[config].fLinearFlags : 50 const uint16_t& flags = linearTiled ? fConfigTable[config].fLinearFlags :
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 StencilFormat fPreferedStencilFormat; 105 StencilFormat fPreferedStencilFormat;
106 106
107 // Tells of if we can pass in straight GLSL string into vkCreateShaderModule 107 // Tells of if we can pass in straight GLSL string into vkCreateShaderModule
108 bool fCanUseGLSLForShaderModule; 108 bool fCanUseGLSLForShaderModule;
109 109
110 typedef GrCaps INHERITED; 110 typedef GrCaps INHERITED;
111 }; 111 };
112 112
113 #endif 113 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698