| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrDrawState_DEFINED | 8 #ifndef GrDrawState_DEFINED |
| 9 #define GrDrawState_DEFINED | 9 #define GrDrawState_DEFINED |
| 10 | 10 |
| (...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 // These fields are roughly sorted by decreasing likelihood of being differe
nt in op== | 776 // These fields are roughly sorted by decreasing likelihood of being differe
nt in op== |
| 777 SkAutoTUnref<GrRenderTarget> fRenderTarget; | 777 SkAutoTUnref<GrRenderTarget> fRenderTarget; |
| 778 GrColor fColor; | 778 GrColor fColor; |
| 779 SkMatrix fViewMatrix; | 779 SkMatrix fViewMatrix; |
| 780 GrBlendCoeff fSrcBlend; | 780 GrBlendCoeff fSrcBlend; |
| 781 GrBlendCoeff fDstBlend; | 781 GrBlendCoeff fDstBlend; |
| 782 GrColor fBlendConstant; | 782 GrColor fBlendConstant; |
| 783 uint32_t fFlagBits; | 783 uint32_t fFlagBits; |
| 784 const GrVertexAttrib* fVAPtr; | 784 const GrVertexAttrib* fVAPtr; |
| 785 int fVACount; | 785 int fVACount; |
| 786 size_t fVertexSize; |
| 786 GrStencilSettings fStencilSettings; | 787 GrStencilSettings fStencilSettings; |
| 787 uint8_t fCoverage; | 788 uint8_t fCoverage; |
| 788 DrawFace fDrawFace; | 789 DrawFace fDrawFace; |
| 789 | 790 |
| 790 typedef SkSTArray<4, GrEffectStage> EffectStageArray; | 791 typedef SkSTArray<4, GrEffectStage> EffectStageArray; |
| 791 EffectStageArray fColorStages; | 792 EffectStageArray fColorStages; |
| 792 EffectStageArray fCoverageStages; | 793 EffectStageArray fCoverageStages; |
| 793 | 794 |
| 794 uint32_t fHints; | 795 uint32_t fHints; |
| 795 | 796 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 812 * @param count the number of attributes being set, limited to kMaxVer
texAttribCnt. | 813 * @param count the number of attributes being set, limited to kMaxVer
texAttribCnt. |
| 813 */ | 814 */ |
| 814 void setVertexAttribs(const GrVertexAttrib attribs[], int count); | 815 void setVertexAttribs(const GrVertexAttrib attribs[], int count); |
| 815 | 816 |
| 816 typedef SkRefCnt INHERITED; | 817 typedef SkRefCnt INHERITED; |
| 817 }; | 818 }; |
| 818 | 819 |
| 819 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags); | 820 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags); |
| 820 | 821 |
| 821 #endif | 822 #endif |
| OLD | NEW |