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

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

Issue 993363002: GrGLInterface: Add support for NV_framebuffer_mixed_samples (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase and missing validation Created 5 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 | « src/gpu/gl/GrGLAssembleInterface.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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 * TODO(joshualitt) On desktop opengl 4.2+ we can achieve something similar to this effect 171 * TODO(joshualitt) On desktop opengl 4.2+ we can achieve something similar to this effect
172 */ 172 */
173 bool fbFetchSupport() const { return fFBFetchSupport; } 173 bool fbFetchSupport() const { return fFBFetchSupport; }
174 174
175 bool fbFetchNeedsCustomOutput() const { return fFBFetchNeedsCustomOutput; } 175 bool fbFetchNeedsCustomOutput() const { return fFBFetchNeedsCustomOutput; }
176 176
177 const char* fbFetchColorName() const { return fFBFetchColorName; } 177 const char* fbFetchColorName() const { return fFBFetchColorName; }
178 178
179 const char* fbFetchExtensionString() const { return fFBFetchExtensionString; } 179 const char* fbFetchExtensionString() const { return fFBFetchExtensionString; }
180 180
181 bool fbMixedSamplesSupport() const { return fFBMixedSamplesSupport; }
182
181 InvalidateFBType invalidateFBType() const { return fInvalidateFBType; } 183 InvalidateFBType invalidateFBType() const { return fInvalidateFBType; }
182 184
183 /// What type of buffer mapping is supported? 185 /// What type of buffer mapping is supported?
184 MapBufferType mapBufferType() const { return fMapBufferType; } 186 MapBufferType mapBufferType() const { return fMapBufferType; }
185 187
186 /** 188 /**
187 * Gets an array of legal stencil formats. These formats are not guaranteed 189 * Gets an array of legal stencil formats. These formats are not guaranteed
188 * to be supported by the driver but are legal GLenum names given the GL 190 * to be supported by the driver but are legal GLenum names given the GL
189 * version and extensions supported. 191 * version and extensions supported.
190 */ 192 */
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 bool fTwoFormatLimit : 1; 384 bool fTwoFormatLimit : 1;
383 bool fFragCoordsConventionSupport : 1; 385 bool fFragCoordsConventionSupport : 1;
384 bool fVertexArrayObjectSupport : 1; 386 bool fVertexArrayObjectSupport : 1;
385 bool fES2CompatibilitySupport : 1; 387 bool fES2CompatibilitySupport : 1;
386 bool fUseNonVBOVertexAndIndexDynamicData : 1; 388 bool fUseNonVBOVertexAndIndexDynamicData : 1;
387 bool fIsCoreProfile : 1; 389 bool fIsCoreProfile : 1;
388 bool fFullClearIsFree : 1; 390 bool fFullClearIsFree : 1;
389 bool fDropsTileOnZeroDivide : 1; 391 bool fDropsTileOnZeroDivide : 1;
390 bool fFBFetchSupport : 1; 392 bool fFBFetchSupport : 1;
391 bool fFBFetchNeedsCustomOutput : 1; 393 bool fFBFetchNeedsCustomOutput : 1;
394 bool fFBMixedSamplesSupport : 1;
392 395
393 const char* fFBFetchColorName; 396 const char* fFBFetchColorName;
394 const char* fFBFetchExtensionString; 397 const char* fFBFetchExtensionString;
395 398
396 struct ReadPixelsSupportedFormat { 399 struct ReadPixelsSupportedFormat {
397 GrGLenum fFormat; 400 GrGLenum fFormat;
398 GrGLenum fType; 401 GrGLenum fType;
399 GrGLenum fFboFormat; 402 GrGLenum fFboFormat;
400 403
401 bool operator==(const ReadPixelsSupportedFormat& rhs) const { 404 bool operator==(const ReadPixelsSupportedFormat& rhs) const {
402 return fFormat == rhs.fFormat 405 return fFormat == rhs.fFormat
403 && fType == rhs.fType 406 && fType == rhs.fType
404 && fFboFormat == rhs.fFboFormat; 407 && fFboFormat == rhs.fFboFormat;
405 } 408 }
406 }; 409 };
407 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach e; 410 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach e;
408 411
409 typedef GrDrawTargetCaps INHERITED; 412 typedef GrDrawTargetCaps INHERITED;
410 }; 413 };
411 414
412 #endif 415 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLAssembleInterface.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698