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

Side by Side Diff: src/gpu/GrDrawTargetCaps.h

Issue 1090163002: Import glTextureBarrier (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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/GrDrawTarget.cpp ('k') | src/gpu/gl/GrGLAssembleInterface.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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 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 #ifndef GrDrawTargetCaps_DEFINED 8 #ifndef GrDrawTargetCaps_DEFINED
9 #define GrDrawTargetCaps_DEFINED 9 #define GrDrawTargetCaps_DEFINED
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 bool pathRenderingSupport() const { return fPathRenderingSupport; } 79 bool pathRenderingSupport() const { return fPathRenderingSupport; }
80 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; } 80 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; }
81 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport ; } 81 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport ; }
82 #if GR_FORCE_GPU_TRACE_DEBUGGING 82 #if GR_FORCE_GPU_TRACE_DEBUGGING
83 bool gpuTracingSupport() const { return true; } 83 bool gpuTracingSupport() const { return true; }
84 #else 84 #else
85 bool gpuTracingSupport() const { return fGpuTracingSupport; } 85 bool gpuTracingSupport() const { return fGpuTracingSupport; }
86 #endif 86 #endif
87 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup port; } 87 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup port; }
88 bool oversizedStencilSupport() const { return fOversizedStencilSupport; } 88 bool oversizedStencilSupport() const { return fOversizedStencilSupport; }
89 bool textureBarrierSupport() const { return fTextureBarrierSupport; }
89 90
90 bool useDrawInsteadOfClear() const { return fUseDrawInsteadOfClear; } 91 bool useDrawInsteadOfClear() const { return fUseDrawInsteadOfClear; }
91 92
92 /** 93 /**
93 * Indicates whether GPU->CPU memory mapping for GPU resources such as verte x buffers and 94 * Indicates whether GPU->CPU memory mapping for GPU resources such as verte x buffers and
94 * textures allows partial mappings or full mappings. 95 * textures allows partial mappings or full mappings.
95 */ 96 */
96 enum MapFlags { 97 enum MapFlags {
97 kNone_MapFlags = 0x0, //<! Cannot map the resource. 98 kNone_MapFlags = 0x0, //<! Cannot map the resource.
98 99
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 bool fShaderDerivativeSupport : 1; 151 bool fShaderDerivativeSupport : 1;
151 bool fGeometryShaderSupport : 1; 152 bool fGeometryShaderSupport : 1;
152 bool fDualSourceBlendingSupport : 1; 153 bool fDualSourceBlendingSupport : 1;
153 bool fPathRenderingSupport : 1; 154 bool fPathRenderingSupport : 1;
154 bool fDstReadInShaderSupport : 1; 155 bool fDstReadInShaderSupport : 1;
155 bool fDiscardRenderTargetSupport : 1; 156 bool fDiscardRenderTargetSupport : 1;
156 bool fReuseScratchTextures : 1; 157 bool fReuseScratchTextures : 1;
157 bool fGpuTracingSupport : 1; 158 bool fGpuTracingSupport : 1;
158 bool fCompressedTexSubImageSupport : 1; 159 bool fCompressedTexSubImageSupport : 1;
159 bool fOversizedStencilSupport : 1; 160 bool fOversizedStencilSupport : 1;
161 bool fTextureBarrierSupport : 1;
160 // Driver workaround 162 // Driver workaround
161 bool fUseDrawInsteadOfClear : 1; 163 bool fUseDrawInsteadOfClear : 1;
162 164
163 uint32_t fMapBufferFlags; 165 uint32_t fMapBufferFlags;
164 166
165 int fMaxRenderTargetSize; 167 int fMaxRenderTargetSize;
166 int fMaxTextureSize; 168 int fMaxTextureSize;
167 int fMaxSampleCount; 169 int fMaxSampleCount;
168 170
169 // The first entry for each config is without msaa and the second is with. 171 // The first entry for each config is without msaa and the second is with.
170 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; 172 bool fConfigRenderSupport[kGrPixelConfigCnt][2];
171 bool fConfigTextureSupport[kGrPixelConfigCnt]; 173 bool fConfigTextureSupport[kGrPixelConfigCnt];
172 174
173 bool fShaderPrecisionVaries; 175 bool fShaderPrecisionVaries;
174 PrecisionInfo fFloatPrecisions[kGrShaderTypeCount][kGrSLPrecisionCount]; 176 PrecisionInfo fFloatPrecisions[kGrShaderTypeCount][kGrSLPrecisionCount];
175 177
176 private: 178 private:
177 typedef SkRefCnt INHERITED; 179 typedef SkRefCnt INHERITED;
178 }; 180 };
179 181
180 #endif 182 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/gl/GrGLAssembleInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698