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

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

Issue 1825393002: Consolidate GPU buffer implementations (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0; 237 virtual bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const = 0;
238 238
239 bool suppressPrints() const { return fSuppressPrints; } 239 bool suppressPrints() const { return fSuppressPrints; }
240 240
241 bool immediateFlush() const { return fImmediateFlush; } 241 bool immediateFlush() const { return fImmediateFlush; }
242 242
243 bool drawPathMasksToCompressedTexturesSupport() const { 243 bool drawPathMasksToCompressedTexturesSupport() const {
244 return fDrawPathMasksToCompressedTextureSupport; 244 return fDrawPathMasksToCompressedTextureSupport;
245 } 245 }
246 246
247 size_t geometryBufferMapThreshold() const { 247 size_t bufferMapThreshold() const {
248 SkASSERT(fGeometryBufferMapThreshold >= 0); 248 SkASSERT(fBufferMapThreshold >= 0);
249 return fGeometryBufferMapThreshold; 249 return fBufferMapThreshold;
250 } 250 }
251 251
252 bool supportsInstancedDraws() const { 252 bool supportsInstancedDraws() const {
253 return fSupportsInstancedDraws; 253 return fSupportsInstancedDraws;
254 } 254 }
255 255
256 bool fullClearIsFree() const { return fFullClearIsFree; } 256 bool fullClearIsFree() const { return fFullClearIsFree; }
257 257
258 /** True in environments that will issue errors if memory uploaded to buffer s 258 /** True in environments that will issue errors if memory uploaded to buffer s
259 is not initialized (even if not read by draw calls). */ 259 is not initialized (even if not read by draw calls). */
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 bool fUseDrawInsteadOfAllRenderTargetWrites : 1; 291 bool fUseDrawInsteadOfAllRenderTargetWrites : 1;
292 292
293 // ANGLE workaround 293 // ANGLE workaround
294 bool fPreferVRAMUseOverFlushes : 1; 294 bool fPreferVRAMUseOverFlushes : 1;
295 295
296 BlendEquationSupport fBlendEquationSupport; 296 BlendEquationSupport fBlendEquationSupport;
297 uint32_t fAdvBlendEqBlacklist; 297 uint32_t fAdvBlendEqBlacklist;
298 GR_STATIC_ASSERT(kLast_GrBlendEquation < 32); 298 GR_STATIC_ASSERT(kLast_GrBlendEquation < 32);
299 299
300 uint32_t fMapBufferFlags; 300 uint32_t fMapBufferFlags;
301 int fGeometryBufferMapThreshold; 301 int fBufferMapThreshold;
302 302
303 int fMaxRenderTargetSize; 303 int fMaxRenderTargetSize;
304 int fMaxTextureSize; 304 int fMaxTextureSize;
305 int fMaxTileSize; 305 int fMaxTileSize;
306 int fMaxColorSampleCount; 306 int fMaxColorSampleCount;
307 int fMaxStencilSampleCount; 307 int fMaxStencilSampleCount;
308 int fMaxRasterSamples; 308 int fMaxRasterSamples;
309 309
310 private: 310 private:
311 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; 311 virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
312 312
313 bool fSuppressPrints : 1; 313 bool fSuppressPrints : 1;
314 bool fImmediateFlush: 1; 314 bool fImmediateFlush: 1;
315 bool fDrawPathMasksToCompressedTextureSupport : 1; 315 bool fDrawPathMasksToCompressedTextureSupport : 1;
316 316
317 typedef SkRefCnt INHERITED; 317 typedef SkRefCnt INHERITED;
318 }; 318 };
319 319
320 #endif 320 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrContextOptions.h » ('j') | include/gpu/GrContextOptions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698