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

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

Issue 1812223002: added support for glMinSampleShading (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: updated for Jim's change Created 4 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 | « no previous file | include/gpu/gl/GrGLFunctions.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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 bool supportsInstancedDraws() const { 262 bool supportsInstancedDraws() const {
263 return fSupportsInstancedDraws; 263 return fSupportsInstancedDraws;
264 } 264 }
265 265
266 bool fullClearIsFree() const { return fFullClearIsFree; } 266 bool fullClearIsFree() const { return fFullClearIsFree; }
267 267
268 /** True in environments that will issue errors if memory uploaded to buffer s 268 /** True in environments that will issue errors if memory uploaded to buffer s
269 is not initialized (even if not read by draw calls). */ 269 is not initialized (even if not read by draw calls). */
270 bool mustClearUploadedBufferData() const { return fMustClearUploadedBufferDa ta; } 270 bool mustClearUploadedBufferData() const { return fMustClearUploadedBufferDa ta; }
271 271
272 bool sampleShadingSupport() const { return fSampleShadingSupport; }
273
272 protected: 274 protected:
273 /** Subclasses must call this at the end of their constructors in order to a pply caps 275 /** Subclasses must call this at the end of their constructors in order to a pply caps
274 overrides requested by the client. Note that overrides will only reduce the caps never 276 overrides requested by the client. Note that overrides will only reduce the caps never
275 expand them. */ 277 expand them. */
276 void applyOptionsOverrides(const GrContextOptions& options); 278 void applyOptionsOverrides(const GrContextOptions& options);
277 279
278 SkAutoTUnref<GrShaderCaps> fShaderCaps; 280 SkAutoTUnref<GrShaderCaps> fShaderCaps;
279 281
280 bool fNPOTTextureTileSupport : 1; 282 bool fNPOTTextureTileSupport : 1;
281 bool fMipMapSupport : 1; 283 bool fMipMapSupport : 1;
(...skipping 14 matching lines...) Expand all
296 bool fMustClearUploadedBufferData : 1; 298 bool fMustClearUploadedBufferData : 1;
297 299
298 // Driver workaround 300 // Driver workaround
299 bool fUseDrawInsteadOfClear : 1; 301 bool fUseDrawInsteadOfClear : 1;
300 bool fUseDrawInsteadOfPartialRenderTargetWrite : 1; 302 bool fUseDrawInsteadOfPartialRenderTargetWrite : 1;
301 bool fUseDrawInsteadOfAllRenderTargetWrites : 1; 303 bool fUseDrawInsteadOfAllRenderTargetWrites : 1;
302 304
303 // ANGLE workaround 305 // ANGLE workaround
304 bool fPreferVRAMUseOverFlushes : 1; 306 bool fPreferVRAMUseOverFlushes : 1;
305 307
308 bool fSampleShadingSupport : 1;
309
306 BlendEquationSupport fBlendEquationSupport; 310 BlendEquationSupport fBlendEquationSupport;
307 uint32_t fAdvBlendEqBlacklist; 311 uint32_t fAdvBlendEqBlacklist;
308 GR_STATIC_ASSERT(kLast_GrBlendEquation < 32); 312 GR_STATIC_ASSERT(kLast_GrBlendEquation < 32);
309 313
310 uint32_t fMapBufferFlags; 314 uint32_t fMapBufferFlags;
311 int fGeometryBufferMapThreshold; 315 int fGeometryBufferMapThreshold;
312 316
313 int fMaxRenderTargetSize; 317 int fMaxRenderTargetSize;
314 int fMaxVertexAttributes; 318 int fMaxVertexAttributes;
315 int fMaxTextureSize; 319 int fMaxTextureSize;
316 int fMaxTileSize; 320 int fMaxTileSize;
317 int fMaxColorSampleCount; 321 int fMaxColorSampleCount;
318 int fMaxStencilSampleCount; 322 int fMaxStencilSampleCount;
319 int fMaxRasterSamples; 323 int fMaxRasterSamples;
320 324
321 private: 325 private:
322 virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; 326 virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
323 327
324 bool fSuppressPrints : 1; 328 bool fSuppressPrints : 1;
325 bool fImmediateFlush: 1; 329 bool fImmediateFlush: 1;
326 bool fDrawPathMasksToCompressedTextureSupport : 1; 330 bool fDrawPathMasksToCompressedTextureSupport : 1;
327 331
328 typedef SkRefCnt INHERITED; 332 typedef SkRefCnt INHERITED;
329 }; 333 };
330 334
331 #endif 335 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/gl/GrGLFunctions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698