Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: src/gpu/GrDrawState.h

Issue 498483002: Store vertex size in DrawState when setVertexAttribs is called (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add size assert Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698