| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 */ | 92 */ |
| 93 GrGLCaps(); | 93 GrGLCaps(); |
| 94 | 94 |
| 95 GrGLCaps(const GrGLCaps& caps); | 95 GrGLCaps(const GrGLCaps& caps); |
| 96 | 96 |
| 97 GrGLCaps& operator = (const GrGLCaps& caps); | 97 GrGLCaps& operator = (const GrGLCaps& caps); |
| 98 | 98 |
| 99 /** | 99 /** |
| 100 * Resets the caps such that nothing is supported. | 100 * Resets the caps such that nothing is supported. |
| 101 */ | 101 */ |
| 102 void reset() SK_OVERRIDE; | 102 void reset() override; |
| 103 | 103 |
| 104 /** | 104 /** |
| 105 * Initializes the GrGLCaps to the set of features supported in the current | 105 * Initializes the GrGLCaps to the set of features supported in the current |
| 106 * OpenGL context accessible via ctxInfo. | 106 * OpenGL context accessible via ctxInfo. |
| 107 */ | 107 */ |
| 108 bool init(const GrGLContextInfo& ctxInfo, const GrGLInterface* glInterface); | 108 bool init(const GrGLContextInfo& ctxInfo, const GrGLInterface* glInterface); |
| 109 | 109 |
| 110 /** | 110 /** |
| 111 * Call to note that a color config has been verified as a valid color | 111 * Call to note that a color config has been verified as a valid color |
| 112 * attachment. This may save future calls to glCheckFramebufferStatus | 112 * attachment. This may save future calls to glCheckFramebufferStatus |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 bool isCoreProfile() const { return fIsCoreProfile; } | 264 bool isCoreProfile() const { return fIsCoreProfile; } |
| 265 | 265 |
| 266 | 266 |
| 267 bool fullClearIsFree() const { return fFullClearIsFree; } | 267 bool fullClearIsFree() const { return fFullClearIsFree; } |
| 268 | 268 |
| 269 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; } | 269 bool dropsTileOnZeroDivide() const { return fDropsTileOnZeroDivide; } |
| 270 | 270 |
| 271 /** | 271 /** |
| 272 * Returns a string containing the caps info. | 272 * Returns a string containing the caps info. |
| 273 */ | 273 */ |
| 274 SkString dump() const SK_OVERRIDE; | 274 SkString dump() const override; |
| 275 | 275 |
| 276 /** | 276 /** |
| 277 * LATC can appear under one of three possible names. In order to know | 277 * LATC can appear under one of three possible names. In order to know |
| 278 * which GL internal format to use, we need to keep track of which name | 278 * which GL internal format to use, we need to keep track of which name |
| 279 * we found LATC under. The default is LATC. | 279 * we found LATC under. The default is LATC. |
| 280 */ | 280 */ |
| 281 enum LATCAlias { | 281 enum LATCAlias { |
| 282 kLATC_LATCAlias, | 282 kLATC_LATCAlias, |
| 283 kRGTC_LATCAlias, | 283 kRGTC_LATCAlias, |
| 284 k3DC_LATCAlias | 284 k3DC_LATCAlias |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 && fType == rhs.fType | 403 && fType == rhs.fType |
| 404 && fFboFormat == rhs.fFboFormat; | 404 && fFboFormat == rhs.fFboFormat; |
| 405 } | 405 } |
| 406 }; | 406 }; |
| 407 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach
e; | 407 mutable SkTHashMap<ReadPixelsSupportedFormat, bool> fReadPixelsSupportedCach
e; |
| 408 | 408 |
| 409 typedef GrDrawTargetCaps INHERITED; | 409 typedef GrDrawTargetCaps INHERITED; |
| 410 }; | 410 }; |
| 411 | 411 |
| 412 #endif | 412 #endif |
| OLD | NEW |