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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 kLATC_LATCAlias, | 259 kLATC_LATCAlias, |
260 kRGTC_LATCAlias, | 260 kRGTC_LATCAlias, |
261 k3DC_LATCAlias | 261 k3DC_LATCAlias |
262 }; | 262 }; |
263 | 263 |
264 LATCAlias latcAlias() const { return fLATCAlias; } | 264 LATCAlias latcAlias() const { return fLATCAlias; } |
265 | 265 |
266 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } | 266 bool rgba8888PixelsOpsAreSlow() const { return fRGBA8888PixelsOpsAreSlow; } |
267 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } | 267 bool partialFBOReadIsSlow() const { return fPartialFBOReadIsSlow; } |
268 | 268 |
269 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderC
aps.get()); } | 269 const GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fS
haderCaps.get()); } |
270 | 270 |
271 private: | 271 private: |
272 void init(const GrContextOptions&, const GrGLContextInfo&, const GrGLInterfa
ce*); | 272 void init(const GrContextOptions&, const GrGLContextInfo&, const GrGLInterfa
ce*); |
273 bool hasPathRenderingSupport(const GrGLContextInfo&, const GrGLInterface*); | 273 bool hasPathRenderingSupport(const GrGLContextInfo&, const GrGLInterface*); |
274 | 274 |
275 /** | 275 /** |
276 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly | 276 * Maintains a bit per GrPixelConfig. It is used to avoid redundantly |
277 * performing glCheckFrameBufferStatus for the same config. | 277 * performing glCheckFrameBufferStatus for the same config. |
278 */ | 278 */ |
279 struct VerifiedColorConfigs { | 279 struct VerifiedColorConfigs { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 && fType == rhs.fType | 374 && fType == rhs.fType |
375 && fFboFormat == rhs.fFboFormat; | 375 && fFboFormat == rhs.fFboFormat; |
376 } | 376 } |
377 }; | 377 }; |
378 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach
e; | 378 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach
e; |
379 | 379 |
380 typedef GrCaps INHERITED; | 380 typedef GrCaps INHERITED; |
381 }; | 381 }; |
382 | 382 |
383 #endif | 383 #endif |
OLD | NEW |