OLD | NEW |
---|---|
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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
256 enum LATCAlias { | 256 enum LATCAlias { |
257 kLATC_LATCAlias, | 257 kLATC_LATCAlias, |
258 kRGTC_LATCAlias, | 258 kRGTC_LATCAlias, |
259 k3DC_LATCAlias | 259 k3DC_LATCAlias |
260 }; | 260 }; |
261 | 261 |
262 LATCAlias latcAlias() const { return fLATCAlias; } | 262 LATCAlias latcAlias() const { return fLATCAlias; } |
263 | 263 |
264 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } | 264 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } |
265 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } | 265 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } |
266 bool bindUniformLocation() const { return fBindUniformLocation; } | |
bsalomon
2015/09/30 20:22:23
I think this should be grouped with all the *Suppo
| |
266 | 267 |
267 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderC aps.get()); } | 268 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderC aps.get()); } |
268 | 269 |
269 private: | 270 private: |
270 void init(const GrContextOptions&, const GrGLContextInfo&, const GrGLInterfa ce*); | 271 void init(const GrContextOptions&, const GrGLContextInfo&, const GrGLInterfa ce*); |
271 bool hasPathRenderingSupport(const GrGLContextInfo&, const GrGLInterface*); | 272 bool hasPathRenderingSupport(const GrGLContextInfo&, const GrGLInterface*); |
272 | 273 |
273 /** | 274 /** |
274 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly | 275 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly |
275 * performing glCheckFrameBufferStatus for the same config. | 276 * performing glCheckFrameBufferStatus for the same config. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
353 bool fDirectStateAccessSupport : 1; | 354 bool fDirectStateAccessSupport : 1; |
354 bool fDebugSupport : 1; | 355 bool fDebugSupport : 1; |
355 bool fES2CompatibilitySupport : 1; | 356 bool fES2CompatibilitySupport : 1; |
356 bool fMultisampleDisableSupport : 1; | 357 bool fMultisampleDisableSupport : 1; |
357 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 358 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
358 bool fIsCoreProfile : 1; | 359 bool fIsCoreProfile : 1; |
359 bool fBindFragDataLocationSupport : 1; | 360 bool fBindFragDataLocationSupport : 1; |
360 bool fSRGBWriteControl : 1; | 361 bool fSRGBWriteControl : 1; |
361 bool fRGBA8888PixelsOpsAreSlow : 1; | 362 bool fRGBA8888PixelsOpsAreSlow : 1; |
362 bool fPartialFBOReadIsSlow : 1; | 363 bool fPartialFBOReadIsSlow : 1; |
364 bool fBindUniformLocation : 1; | |
363 | 365 |
364 struct ReadPixelsSupportedFormat { | 366 struct ReadPixelsSupportedFormat { |
365 GrGLenum fFormat; | 367 GrGLenum fFormat; |
366 GrGLenum fType; | 368 GrGLenum fType; |
367 GrGLenum fFboFormat; | 369 GrGLenum fFboFormat; |
368 | 370 |
369 bool operator==(const ReadPixelsSupportedFormat& rhs) const { | 371 bool operator==(const ReadPixelsSupportedFormat& rhs) const { |
370 return fFormat == rhs.fFormat | 372 return fFormat == rhs.fFormat |
371 && fType == rhs.fType | 373 && fType == rhs.fType |
372 && fFboFormat == rhs.fFboFormat; | 374 && fFboFormat == rhs.fFboFormat; |
373 } | 375 } |
374 }; | 376 }; |
375 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach e; | 377 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach e; |
376 | 378 |
377 typedef GrCaps INHERITED; | 379 typedef GrCaps INHERITED; |
378 }; | 380 }; |
379 | 381 |
380 #endif | 382 #endif |
OLD | NEW |