| 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 | |
| 9 #include "SkRefCnt.h" | |
| 10 #include "GrTypes.h" | |
| 11 | |
| 12 #ifndef GrDrawTargetCaps_DEFINED | 8 #ifndef GrDrawTargetCaps_DEFINED |
| 13 #define GrDrawTargetCaps_DEFINED | 9 #define GrDrawTargetCaps_DEFINED |
| 14 | 10 |
| 11 #include "GrTypes.h" |
| 12 #include "SkRefCnt.h" |
| 13 #include "SkString.h" |
| 14 |
| 15 /** | 15 /** |
| 16 * Represents the draw target capabilities. | 16 * Represents the draw target capabilities. |
| 17 */ | 17 */ |
| 18 class GrDrawTargetCaps : public SkRefCnt { | 18 class GrDrawTargetCaps : public SkRefCnt { |
| 19 public: | 19 public: |
| 20 SK_DECLARE_INST_COUNT(Caps) | 20 SK_DECLARE_INST_COUNT(Caps) |
| 21 | 21 |
| 22 GrDrawTargetCaps() { this->reset(); } | 22 GrDrawTargetCaps() { this->reset(); } |
| 23 GrDrawTargetCaps(const GrDrawTargetCaps& other) : INHERITED() { *this = othe
r; } | 23 GrDrawTargetCaps(const GrDrawTargetCaps& other) : INHERITED() { *this = othe
r; } |
| 24 GrDrawTargetCaps& operator= (const GrDrawTargetCaps&); | 24 GrDrawTargetCaps& operator= (const GrDrawTargetCaps&); |
| 25 | 25 |
| 26 virtual void reset(); | 26 virtual void reset(); |
| 27 virtual void print() const; | 27 virtual SkString dump() const; |
| 28 | 28 |
| 29 bool eightBitPaletteSupport() const { return f8BitPaletteSupport; } | 29 bool eightBitPaletteSupport() const { return f8BitPaletteSupport; } |
| 30 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } | 30 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } |
| 31 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } | 31 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } |
| 32 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } | 32 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } |
| 33 bool hwAALineSupport() const { return fHWAALineSupport; } | 33 bool hwAALineSupport() const { return fHWAALineSupport; } |
| 34 bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; } | 34 bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; } |
| 35 bool geometryShaderSupport() const { return fGeometryShaderSupport; } | 35 bool geometryShaderSupport() const { return fGeometryShaderSupport; } |
| 36 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport;
} | 36 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport;
} |
| 37 bool bufferLockSupport() const { return fBufferLockSupport; } | 37 bool bufferLockSupport() const { return fBufferLockSupport; } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 int fMaxTextureSize; | 72 int fMaxTextureSize; |
| 73 int fMaxSampleCount; | 73 int fMaxSampleCount; |
| 74 | 74 |
| 75 // The first entry for each config is without msaa and the second is with. | 75 // The first entry for each config is without msaa and the second is with. |
| 76 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; | 76 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; |
| 77 | 77 |
| 78 typedef SkRefCnt INHERITED; | 78 typedef SkRefCnt INHERITED; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 #endif | 81 #endif |
| OLD | NEW |