| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 typedef SkRefCnt INHERITED; | 101 typedef SkRefCnt INHERITED; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 /** | 104 /** |
| 105 * Represents the capabilities of a GrContext. | 105 * Represents the capabilities of a GrContext. |
| 106 */ | 106 */ |
| 107 class GrCaps : public SkRefCnt { | 107 class GrCaps : public SkRefCnt { |
| 108 public: | 108 public: |
| 109 | |
| 110 | |
| 111 GrCaps(const GrContextOptions&); | 109 GrCaps(const GrContextOptions&); |
| 112 | 110 |
| 113 virtual SkString dump() const; | 111 virtual SkString dump() const; |
| 114 | 112 |
| 115 GrShaderCaps* shaderCaps() const { return fShaderCaps; } | 113 GrShaderCaps* shaderCaps() const { return fShaderCaps; } |
| 116 | 114 |
| 117 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } | 115 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } |
| 118 /** To avoid as-yet-unnecessary complexity we don't allow any partial suppor
t of MIP Maps (e.g. | 116 /** To avoid as-yet-unnecessary complexity we don't allow any partial suppor
t of MIP Maps (e.g. |
| 119 only for POT textures) */ | 117 only for POT textures) */ |
| 120 bool mipMapSupport() const { return fMipMapSupport; } | 118 bool mipMapSupport() const { return fMipMapSupport; } |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 bool fConfigTextureSupport[kGrPixelConfigCnt]; | 258 bool fConfigTextureSupport[kGrPixelConfigCnt]; |
| 261 | 259 |
| 262 private: | 260 private: |
| 263 bool fSupressPrints : 1; | 261 bool fSupressPrints : 1; |
| 264 bool fDrawPathMasksToCompressedTextureSupport : 1; | 262 bool fDrawPathMasksToCompressedTextureSupport : 1; |
| 265 | 263 |
| 266 typedef SkRefCnt INHERITED; | 264 typedef SkRefCnt INHERITED; |
| 267 }; | 265 }; |
| 268 | 266 |
| 269 #endif | 267 #endif |
| OLD | NEW |