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

Side by Side Diff: src/gpu/gl/GrGLCaps.h

Issue 1431593006: Fix mixed samples stencil clip (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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/GrPipeline.cpp ('k') | src/gpu/gl/GrGLCaps.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 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #ifndef GrGLCaps_DEFINED 9 #ifndef GrGLCaps_DEFINED
10 #define GrGLCaps_DEFINED 10 #define GrGLCaps_DEFINED
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 /// Is there support for GL_EXT_direct_state_access? 207 /// Is there support for GL_EXT_direct_state_access?
208 bool directStateAccessSupport() const { return fDirectStateAccessSupport; } 208 bool directStateAccessSupport() const { return fDirectStateAccessSupport; }
209 209
210 /// Is there support for GL_KHR_debug? 210 /// Is there support for GL_KHR_debug?
211 bool debugSupport() const { return fDebugSupport; } 211 bool debugSupport() const { return fDebugSupport; }
212 212
213 /// Is there support for ES2 compatability? 213 /// Is there support for ES2 compatability?
214 bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; } 214 bool ES2CompatibilitySupport() const { return fES2CompatibilitySupport; }
215 215
216 /// Can we call glDisable(GL_MULTISAMPLE)?
217 bool multisampleDisableSupport() const {
218 return fMultisampleDisableSupport;
219 }
220
221 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte nt. 216 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte nt.
222 bool useNonVBOVertexAndIndexDynamicData() const { 217 bool useNonVBOVertexAndIndexDynamicData() const {
223 return fUseNonVBOVertexAndIndexDynamicData; 218 return fUseNonVBOVertexAndIndexDynamicData;
224 } 219 }
225 220
226 /// Does ReadPixels support the provided format/type combo? 221 /// Does ReadPixels support the provided format/type combo?
227 bool readPixelsSupported(const GrGLInterface* intf, 222 bool readPixelsSupported(const GrGLInterface* intf,
228 GrGLenum format, 223 GrGLenum format,
229 GrGLenum type, 224 GrGLenum type,
230 GrGLenum currFboFormat) const; 225 GrGLenum currFboFormat) const;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 bool fTexStorageSupport : 1; 344 bool fTexStorageSupport : 1;
350 bool fTextureRedSupport : 1; 345 bool fTextureRedSupport : 1;
351 bool fImagingSupport : 1; 346 bool fImagingSupport : 1;
352 bool fTwoFormatLimit : 1; 347 bool fTwoFormatLimit : 1;
353 bool fFragCoordsConventionSupport : 1; 348 bool fFragCoordsConventionSupport : 1;
354 bool fVertexArrayObjectSupport : 1; 349 bool fVertexArrayObjectSupport : 1;
355 bool fInstancedDrawingSupport : 1; 350 bool fInstancedDrawingSupport : 1;
356 bool fDirectStateAccessSupport : 1; 351 bool fDirectStateAccessSupport : 1;
357 bool fDebugSupport : 1; 352 bool fDebugSupport : 1;
358 bool fES2CompatibilitySupport : 1; 353 bool fES2CompatibilitySupport : 1;
359 bool fMultisampleDisableSupport : 1;
360 bool fUseNonVBOVertexAndIndexDynamicData : 1; 354 bool fUseNonVBOVertexAndIndexDynamicData : 1;
361 bool fIsCoreProfile : 1; 355 bool fIsCoreProfile : 1;
362 bool fBindFragDataLocationSupport : 1; 356 bool fBindFragDataLocationSupport : 1;
363 bool fSRGBWriteControl : 1; 357 bool fSRGBWriteControl : 1;
364 bool fRGBA8888PixelsOpsAreSlow : 1; 358 bool fRGBA8888PixelsOpsAreSlow : 1;
365 bool fPartialFBOReadIsSlow : 1; 359 bool fPartialFBOReadIsSlow : 1;
366 bool fBindUniformLocationSupport : 1; 360 bool fBindUniformLocationSupport : 1;
367 361
368 struct ReadPixelsSupportedFormat { 362 struct ReadPixelsSupportedFormat {
369 GrGLenum fFormat; 363 GrGLenum fFormat;
370 GrGLenum fType; 364 GrGLenum fType;
371 GrGLenum fFboFormat; 365 GrGLenum fFboFormat;
372 366
373 bool operator==(const ReadPixelsSupportedFormat& rhs) const { 367 bool operator==(const ReadPixelsSupportedFormat& rhs) const {
374 return fFormat == rhs.fFormat 368 return fFormat == rhs.fFormat
375 && fType == rhs.fType 369 && fType == rhs.fType
376 && fFboFormat == rhs.fFboFormat; 370 && fFboFormat == rhs.fFboFormat;
377 } 371 }
378 }; 372 };
379 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach e; 373 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach e;
380 374
381 typedef GrCaps INHERITED; 375 typedef GrCaps INHERITED;
382 }; 376 };
383 377
384 #endif 378 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrPipeline.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698