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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 * then implicitly resolved when read. | 153 * then implicitly resolved when read. |
154 */ | 154 */ |
155 bool usesImplicitMSAAResolve() const { | 155 bool usesImplicitMSAAResolve() const { |
156 return kES_IMG_MsToTexture_MSFBOType == fMSFBOType || | 156 return kES_IMG_MsToTexture_MSFBOType == fMSFBOType || |
157 kES_EXT_MsToTexture_MSFBOType == fMSFBOType; | 157 kES_EXT_MsToTexture_MSFBOType == fMSFBOType; |
158 } | 158 } |
159 | 159 |
160 FBFetchType fbFetchType() const { return fFBFetchType; } | 160 FBFetchType fbFetchType() const { return fFBFetchType; } |
161 | 161 |
162 /** | 162 /** |
163 * Prints the caps info using GrPrintf. | 163 * Returs a string containeng the caps info. |
164 */ | 164 */ |
165 virtual void print() const SK_OVERRIDE; | 165 virtual SkString dump() const SK_OVERRIDE; |
166 | 166 |
167 /** | 167 /** |
168 * Gets an array of legal stencil formats. These formats are not guaranteed | 168 * Gets an array of legal stencil formats. These formats are not guaranteed |
169 * to be supported by the driver but are legal GLenum names given the GL | 169 * to be supported by the driver but are legal GLenum names given the GL |
170 * version and extensions supported. | 170 * version and extensions supported. |
171 */ | 171 */ |
172 const SkTArray<StencilFormat, true>& stencilFormats() const { | 172 const SkTArray<StencilFormat, true>& stencilFormats() const { |
173 return fStencilFormats; | 173 return fStencilFormats; |
174 } | 174 } |
175 | 175 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 bool fUseNonVBOVertexAndIndexDynamicData : 1; | 330 bool fUseNonVBOVertexAndIndexDynamicData : 1; |
331 bool fIsCoreProfile : 1; | 331 bool fIsCoreProfile : 1; |
332 bool fFixedFunctionSupport : 1; | 332 bool fFixedFunctionSupport : 1; |
333 bool fDiscardFBSupport : 1; | 333 bool fDiscardFBSupport : 1; |
334 bool fFullClearIsFree : 1; | 334 bool fFullClearIsFree : 1; |
335 | 335 |
336 typedef GrDrawTargetCaps INHERITED; | 336 typedef GrDrawTargetCaps INHERITED; |
337 }; | 337 }; |
338 | 338 |
339 #endif | 339 #endif |
OLD | NEW |