| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 #ifndef GrCaps_DEFINED | 8 #ifndef GrCaps_DEFINED |
| 9 #define GrCaps_DEFINED | 9 #define GrCaps_DEFINED |
| 10 | 10 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 SkASSERT(kGrPixelConfigCnt > config); | 187 SkASSERT(kGrPixelConfigCnt > config); |
| 188 return fConfigTextureSupport[config]; | 188 return fConfigTextureSupport[config]; |
| 189 } | 189 } |
| 190 | 190 |
| 191 bool suppressPrints() const { return fSupressPrints; } | 191 bool suppressPrints() const { return fSupressPrints; } |
| 192 | 192 |
| 193 bool drawPathMasksToCompressedTexturesSupport() const { | 193 bool drawPathMasksToCompressedTexturesSupport() const { |
| 194 return fDrawPathMasksToCompressedTextureSupport; } | 194 return fDrawPathMasksToCompressedTextureSupport; } |
| 195 | 195 |
| 196 protected: | 196 protected: |
| 197 /** Subclasses must call this at the end of their constructors in order to a
pply caps |
| 198 overrides requested by the client. Note that overrides will only reduce
the caps never |
| 199 expand them. */ |
| 200 void applyOptionsOverrides(const GrContextOptions& options); |
| 201 |
| 197 SkAutoTUnref<GrShaderCaps> fShaderCaps; | 202 SkAutoTUnref<GrShaderCaps> fShaderCaps; |
| 198 | 203 |
| 199 bool fNPOTTextureTileSupport : 1; | 204 bool fNPOTTextureTileSupport : 1; |
| 200 bool fMipMapSupport : 1; | 205 bool fMipMapSupport : 1; |
| 201 bool fTwoSidedStencilSupport : 1; | 206 bool fTwoSidedStencilSupport : 1; |
| 202 bool fStencilWrapOpsSupport : 1; | 207 bool fStencilWrapOpsSupport : 1; |
| 203 bool fDiscardRenderTargetSupport : 1; | 208 bool fDiscardRenderTargetSupport : 1; |
| 204 bool fReuseScratchTextures : 1; | 209 bool fReuseScratchTextures : 1; |
| 205 bool fGpuTracingSupport : 1; | 210 bool fGpuTracingSupport : 1; |
| 206 bool fCompressedTexSubImageSupport : 1; | 211 bool fCompressedTexSubImageSupport : 1; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 221 bool fConfigTextureSupport[kGrPixelConfigCnt]; | 226 bool fConfigTextureSupport[kGrPixelConfigCnt]; |
| 222 | 227 |
| 223 private: | 228 private: |
| 224 bool fSupressPrints : 1; | 229 bool fSupressPrints : 1; |
| 225 bool fDrawPathMasksToCompressedTextureSupport : 1; | 230 bool fDrawPathMasksToCompressedTextureSupport : 1; |
| 226 | 231 |
| 227 typedef SkRefCnt INHERITED; | 232 typedef SkRefCnt INHERITED; |
| 228 }; | 233 }; |
| 229 | 234 |
| 230 #endif | 235 #endif |
| OLD | NEW |