| 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 #include "GrGLCaps.h" | 9 #include "GrGLCaps.h" |
| 10 | 10 |
| 11 #include "GrContextOptions.h" | 11 #include "GrContextOptions.h" |
| 12 #include "GrGLContext.h" | 12 #include "GrGLContext.h" |
| 13 #include "glsl/GrGLSLCaps.h" | 13 #include "glsl/GrGLSLCaps.h" |
| 14 #include "SkTSearch.h" | 14 #include "SkTSearch.h" |
| 15 #include "SkTSort.h" | 15 #include "SkTSort.h" |
| 16 | 16 |
| 17 GrGLCaps::GrGLCaps(const GrContextOptions& contextOptions, | 17 GrGLCaps::GrGLCaps(const GrContextOptions& contextOptions, |
| 18 const GrGLContextInfo& ctxInfo, | 18 const GrGLContextInfo& ctxInfo, |
| 19 const GrGLInterface* glInterface) : INHERITED(contextOptions)
{ | 19 const GrGLInterface* glInterface) : INHERITED(contextOptions)
{ |
| 20 fVerifiedColorConfigs.reset(); | |
| 21 fStencilFormats.reset(); | 20 fStencilFormats.reset(); |
| 22 fMSFBOType = kNone_MSFBOType; | 21 fMSFBOType = kNone_MSFBOType; |
| 23 fInvalidateFBType = kNone_InvalidateFBType; | 22 fInvalidateFBType = kNone_InvalidateFBType; |
| 24 fLATCAlias = kLATC_LATCAlias; | 23 fLATCAlias = kLATC_LATCAlias; |
| 25 fMapBufferType = kNone_MapBufferType; | 24 fMapBufferType = kNone_MapBufferType; |
| 26 fTransferBufferType = kNone_TransferBufferType; | 25 fTransferBufferType = kNone_TransferBufferType; |
| 27 fMaxFragmentUniformVectors = 0; | 26 fMaxFragmentUniformVectors = 0; |
| 28 fMaxVertexAttributes = 0; | 27 fMaxVertexAttributes = 0; |
| 29 fMaxFragmentTextureUnits = 0; | 28 fMaxFragmentTextureUnits = 0; |
| 30 fRGBA8RenderbufferSupport = false; | 29 fRGBA8RenderbufferSupport = false; |
| (...skipping 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1523 fConfigTable[i].fFormats.fSizedInternalFormat); | 1522 fConfigTable[i].fFormats.fSizedInternalFormat); |
| 1524 SkASSERT(defaultEntry.fExternalFormat != fConfigTable[i].fFormats.fExter
nalFormat); | 1523 SkASSERT(defaultEntry.fExternalFormat != fConfigTable[i].fFormats.fExter
nalFormat); |
| 1525 SkASSERT(defaultEntry.fExternalType != fConfigTable[i].fFormats.fExterna
lType); | 1524 SkASSERT(defaultEntry.fExternalType != fConfigTable[i].fFormats.fExterna
lType); |
| 1526 } | 1525 } |
| 1527 #endif | 1526 #endif |
| 1528 } | 1527 } |
| 1529 | 1528 |
| 1530 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} | 1529 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} |
| 1531 | 1530 |
| 1532 | 1531 |
| OLD | NEW |