OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 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 | 9 |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... | |
38 bool fNPOTTextureTileSupport : 1; | 38 bool fNPOTTextureTileSupport : 1; |
39 bool fTwoSidedStencilSupport : 1; | 39 bool fTwoSidedStencilSupport : 1; |
40 bool fStencilWrapOpsSupport : 1; | 40 bool fStencilWrapOpsSupport : 1; |
41 bool fHWAALineSupport : 1; | 41 bool fHWAALineSupport : 1; |
42 bool fShaderDerivativeSupport : 1; | 42 bool fShaderDerivativeSupport : 1; |
43 bool fGeometryShaderSupport : 1; | 43 bool fGeometryShaderSupport : 1; |
44 bool fFSAASupport : 1; | 44 bool fFSAASupport : 1; |
45 bool fDualSourceBlendingSupport : 1; | 45 bool fDualSourceBlendingSupport : 1; |
46 bool fBufferLockSupport : 1; | 46 bool fBufferLockSupport : 1; |
47 bool fPathStencilingSupport : 1; | 47 bool fPathStencilingSupport : 1; |
48 | |
48 int fMaxRenderTargetSize; | 49 int fMaxRenderTargetSize; |
49 int fMaxTextureSize; | 50 int fMaxTextureSize; |
robertphillips
2013/03/15 17:49:17
extra ;
bsalomon
2013/03/19 14:02:12
Done.
| |
51 int fMaxSampleCount;; | |
50 }; | 52 }; |
51 | 53 |
52 class DrawInfo; | 54 class DrawInfo; |
53 | 55 |
54 public: | 56 public: |
55 SK_DECLARE_INST_COUNT(GrDrawTarget) | 57 SK_DECLARE_INST_COUNT(GrDrawTarget) |
56 | 58 |
57 /** | 59 /** |
58 * Represents the draw target capabilities. | 60 * Represents the draw target capabilities. |
59 */ | 61 */ |
(...skipping 14 matching lines...) Expand all Loading... | |
74 bool hwAALineSupport() const { return fInternals.fHWAALineSupport; } | 76 bool hwAALineSupport() const { return fInternals.fHWAALineSupport; } |
75 bool shaderDerivativeSupport() const { return fInternals.fShaderDerivati veSupport; } | 77 bool shaderDerivativeSupport() const { return fInternals.fShaderDerivati veSupport; } |
76 bool geometryShaderSupport() const { return fInternals.fGeometryShaderSu pport; } | 78 bool geometryShaderSupport() const { return fInternals.fGeometryShaderSu pport; } |
77 bool fsaaSupport() const { return fInternals.fFSAASupport; } | 79 bool fsaaSupport() const { return fInternals.fFSAASupport; } |
78 bool dualSourceBlendingSupport() const { return fInternals.fDualSourceBl endingSupport; } | 80 bool dualSourceBlendingSupport() const { return fInternals.fDualSourceBl endingSupport; } |
79 bool bufferLockSupport() const { return fInternals.fBufferLockSupport; } | 81 bool bufferLockSupport() const { return fInternals.fBufferLockSupport; } |
80 bool pathStencilingSupport() const { return fInternals.fPathStencilingSu pport; } | 82 bool pathStencilingSupport() const { return fInternals.fPathStencilingSu pport; } |
81 | 83 |
82 int maxRenderTargetSize() const { return fInternals.fMaxRenderTargetSize ; } | 84 int maxRenderTargetSize() const { return fInternals.fMaxRenderTargetSize ; } |
83 int maxTextureSize() const { return fInternals.fMaxTextureSize; } | 85 int maxTextureSize() const { return fInternals.fMaxTextureSize; } |
86 // Will be 0 if MSAA is not supported | |
87 int maxSampleCount() const { return fInternals.fMaxSampleCount; } | |
84 private: | 88 private: |
85 CapsInternals fInternals; | 89 CapsInternals fInternals; |
86 friend class GrDrawTarget; // to set values of fInternals | 90 friend class GrDrawTarget; // to set values of fInternals |
87 }; | 91 }; |
88 | 92 |
89 /////////////////////////////////////////////////////////////////////////// | 93 /////////////////////////////////////////////////////////////////////////// |
90 | 94 |
91 // The context may not be fully constructed and should not be used during Gr DrawTarget | 95 // The context may not be fully constructed and should not be used during Gr DrawTarget |
92 // construction. | 96 // construction. |
93 GrDrawTarget(GrContext* context); | 97 GrDrawTarget(GrContext* context); |
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
779 const GrClipData* fClip; | 783 const GrClipData* fClip; |
780 GrDrawState* fDrawState; | 784 GrDrawState* fDrawState; |
781 GrDrawState fDefaultDraw State; | 785 GrDrawState fDefaultDraw State; |
782 // The context owns us, not vice-versa, so this ptr is not ref'ed by DrawTar get. | 786 // The context owns us, not vice-versa, so this ptr is not ref'ed by DrawTar get. |
783 GrContext* fContext; | 787 GrContext* fContext; |
784 | 788 |
785 typedef GrRefCnt INHERITED; | 789 typedef GrRefCnt INHERITED; |
786 }; | 790 }; |
787 | 791 |
788 #endif | 792 #endif |
OLD | NEW |