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

Side by Side Diff: include/gpu/GrCaps.h

Issue 1204773003: Revert of Refactor GrBufferAllocPools to use resource cache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 | « no previous file | include/gpu/GrTextureProvider.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 /* 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 GrCaps_DEFINED 8 #ifndef GrCaps_DEFINED
9 #define GrCaps_DEFINED 9 #define GrCaps_DEFINED
10 10
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 kSubset_MapFlag = 0x2, //<! The resource can be partially mapped. 178 kSubset_MapFlag = 0x2, //<! The resource can be partially mapped.
179 }; 179 };
180 180
181 uint32_t mapBufferFlags() const { return fMapBufferFlags; } 181 uint32_t mapBufferFlags() const { return fMapBufferFlags; }
182 182
183 // Scratch textures not being reused means that those scratch textures 183 // Scratch textures not being reused means that those scratch textures
184 // that we upload to (i.e., don't have a render target) will not be 184 // that we upload to (i.e., don't have a render target) will not be
185 // recycled in the texture cache. This is to prevent ghosting by drivers 185 // recycled in the texture cache. This is to prevent ghosting by drivers
186 // (in particular for deferred architectures). 186 // (in particular for deferred architectures).
187 bool reuseScratchTextures() const { return fReuseScratchTextures; } 187 bool reuseScratchTextures() const { return fReuseScratchTextures; }
188 bool reuseScratchBuffers() const { return fReuseScratchBuffers; }
189 188
190 int maxRenderTargetSize() const { return fMaxRenderTargetSize; } 189 int maxRenderTargetSize() const { return fMaxRenderTargetSize; }
191 int maxTextureSize() const { return fMaxTextureSize; } 190 int maxTextureSize() const { return fMaxTextureSize; }
192 /** 0 unless GPU has problems with small textures */ 191 /** 0 unless GPU has problems with small textures */
193 int minTextureSize() const { return fMinTextureSize; } 192 int minTextureSize() const { return fMinTextureSize; }
194 193
195 // Will be 0 if MSAA is not supported 194 // Will be 0 if MSAA is not supported
196 int maxSampleCount() const { return fMaxSampleCount; } 195 int maxSampleCount() const { return fMaxSampleCount; }
197 196
198 bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const { 197 bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const {
(...skipping 24 matching lines...) Expand all
223 void applyOptionsOverrides(const GrContextOptions& options); 222 void applyOptionsOverrides(const GrContextOptions& options);
224 223
225 SkAutoTUnref<GrShaderCaps> fShaderCaps; 224 SkAutoTUnref<GrShaderCaps> fShaderCaps;
226 225
227 bool fNPOTTextureTileSupport : 1; 226 bool fNPOTTextureTileSupport : 1;
228 bool fMipMapSupport : 1; 227 bool fMipMapSupport : 1;
229 bool fTwoSidedStencilSupport : 1; 228 bool fTwoSidedStencilSupport : 1;
230 bool fStencilWrapOpsSupport : 1; 229 bool fStencilWrapOpsSupport : 1;
231 bool fDiscardRenderTargetSupport : 1; 230 bool fDiscardRenderTargetSupport : 1;
232 bool fReuseScratchTextures : 1; 231 bool fReuseScratchTextures : 1;
233 bool fReuseScratchBuffers : 1;
234 bool fGpuTracingSupport : 1; 232 bool fGpuTracingSupport : 1;
235 bool fCompressedTexSubImageSupport : 1; 233 bool fCompressedTexSubImageSupport : 1;
236 bool fOversizedStencilSupport : 1; 234 bool fOversizedStencilSupport : 1;
237 bool fTextureBarrierSupport : 1; 235 bool fTextureBarrierSupport : 1;
238
239 // Driver workaround 236 // Driver workaround
240 bool fUseDrawInsteadOfClear : 1; 237 bool fUseDrawInsteadOfClear : 1;
241 bool fUseDrawInsteadOfPartialRenderTargetWrite : 1; 238 bool fUseDrawInsteadOfPartialRenderTargetWrite : 1;
242 239
243 BlendEquationSupport fBlendEquationSupport; 240 BlendEquationSupport fBlendEquationSupport;
244 uint32_t fAdvBlendEqBlacklist; 241 uint32_t fAdvBlendEqBlacklist;
245 GR_STATIC_ASSERT(kLast_GrBlendEquation < 32); 242 GR_STATIC_ASSERT(kLast_GrBlendEquation < 32);
246 243
247 uint32_t fMapBufferFlags; 244 uint32_t fMapBufferFlags;
248 int fGeometryBufferMapThreshold; 245 int fGeometryBufferMapThreshold;
249 246
250 int fMaxRenderTargetSize; 247 int fMaxRenderTargetSize;
251 int fMaxTextureSize; 248 int fMaxTextureSize;
252 int fMinTextureSize; 249 int fMinTextureSize;
253 int fMaxSampleCount; 250 int fMaxSampleCount;
254 251
255 // The first entry for each config is without msaa and the second is with. 252 // The first entry for each config is without msaa and the second is with.
256 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; 253 bool fConfigRenderSupport[kGrPixelConfigCnt][2];
257 bool fConfigTextureSupport[kGrPixelConfigCnt]; 254 bool fConfigTextureSupport[kGrPixelConfigCnt];
258 255
259 private: 256 private:
260 bool fSupressPrints : 1; 257 bool fSupressPrints : 1;
261 bool fDrawPathMasksToCompressedTextureSupport : 1; 258 bool fDrawPathMasksToCompressedTextureSupport : 1;
262 259
263 typedef SkRefCnt INHERITED; 260 typedef SkRefCnt INHERITED;
264 }; 261 };
265 262
266 #endif 263 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrTextureProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698