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

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

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

Powered by Google App Engine
This is Rietveld 408576698