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 | 8 |
9 #include "SkRefCnt.h" | 9 #include "SkRefCnt.h" |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 bool eightBitPaletteSupport() const { return f8BitPaletteSupport; } | 28 bool eightBitPaletteSupport() const { return f8BitPaletteSupport; } |
29 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } | 29 bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } |
30 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } | 30 bool twoSidedStencilSupport() const { return fTwoSidedStencilSupport; } |
31 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } | 31 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } |
32 bool hwAALineSupport() const { return fHWAALineSupport; } | 32 bool hwAALineSupport() const { return fHWAALineSupport; } |
33 bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; } | 33 bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; } |
34 bool geometryShaderSupport() const { return fGeometryShaderSupport; } | 34 bool geometryShaderSupport() const { return fGeometryShaderSupport; } |
35 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport;
} | 35 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport;
} |
36 bool bufferLockSupport() const { return fBufferLockSupport; } | 36 bool bufferLockSupport() const { return fBufferLockSupport; } |
37 bool pathStencilingSupport() const { return fPathStencilingSupport; } | 37 bool pathStencilingSupport() const { return fPathStencilingSupport; } |
| 38 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; } |
38 | 39 |
39 int maxRenderTargetSize() const { return fMaxRenderTargetSize; } | 40 int maxRenderTargetSize() const { return fMaxRenderTargetSize; } |
40 int maxTextureSize() const { return fMaxTextureSize; } | 41 int maxTextureSize() const { return fMaxTextureSize; } |
41 // Will be 0 if MSAA is not supported | 42 // Will be 0 if MSAA is not supported |
42 int maxSampleCount() const { return fMaxSampleCount; } | 43 int maxSampleCount() const { return fMaxSampleCount; } |
43 | 44 |
44 protected: | 45 protected: |
45 bool f8BitPaletteSupport : 1; | 46 bool f8BitPaletteSupport : 1; |
46 bool fNPOTTextureTileSupport : 1; | 47 bool fNPOTTextureTileSupport : 1; |
47 bool fTwoSidedStencilSupport : 1; | 48 bool fTwoSidedStencilSupport : 1; |
48 bool fStencilWrapOpsSupport : 1; | 49 bool fStencilWrapOpsSupport : 1; |
49 bool fHWAALineSupport : 1; | 50 bool fHWAALineSupport : 1; |
50 bool fShaderDerivativeSupport : 1; | 51 bool fShaderDerivativeSupport : 1; |
51 bool fGeometryShaderSupport : 1; | 52 bool fGeometryShaderSupport : 1; |
52 bool fDualSourceBlendingSupport : 1; | 53 bool fDualSourceBlendingSupport : 1; |
53 bool fBufferLockSupport : 1; | 54 bool fBufferLockSupport : 1; |
54 bool fPathStencilingSupport : 1; | 55 bool fPathStencilingSupport : 1; |
| 56 bool fDstReadInShaderSupport : 1; |
55 | 57 |
56 int fMaxRenderTargetSize; | 58 int fMaxRenderTargetSize; |
57 int fMaxTextureSize; | 59 int fMaxTextureSize; |
58 int fMaxSampleCount; | 60 int fMaxSampleCount; |
59 | 61 |
60 typedef SkRefCnt INHERITED; | 62 typedef SkRefCnt INHERITED; |
61 }; | 63 }; |
62 | 64 |
63 #endif | 65 #endif |
OLD | NEW |