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

Unified Diff: src/gpu/GrOptDrawState.h

Issue 761563002: First step to moving vertex attributes to the geometryProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: adding test to ignore Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrOptDrawState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrOptDrawState.h
diff --git a/src/gpu/GrOptDrawState.h b/src/gpu/GrOptDrawState.h
index bf4f78e5ef325ea08d34961b04225ef93d25e2da..542172fd642e032135ea6502de24e08d7f755790 100644
--- a/src/gpu/GrOptDrawState.h
+++ b/src/gpu/GrOptDrawState.h
@@ -36,19 +36,6 @@ public:
bool operator== (const GrOptDrawState& that) const;
bool operator!= (const GrOptDrawState& that) const { return !(*this == that); }
- ///////////////////////////////////////////////////////////////////////////
- /// @name Vertex Attributes
- ////
-
- enum {
- kMaxVertexAttribCnt = kLast_GrVertexAttribBinding + 4,
- };
-
- const GrVertexAttrib* getVertexAttribs() const { return fVAPtr; }
- int getVertexAttribCount() const { return fVACount; }
-
- size_t getVertexStride() const { return fVAStride; }
-
/// @}
///////////////////////////////////////////////////////////////////////////
@@ -213,26 +200,18 @@ private:
int* firstCoverageStageIdx);
/**
- * This function takes in a flag and removes the corresponding fixed function vertex attributes.
- * The flags are in the same order as GrVertexAttribBinding array. If bit i of removeVAFlags is
- * set, then vertex attributes with binding (GrVertexAttribute)i will be removed.
- */
- void removeFixedFunctionVertexAttribs(uint8_t removeVAFlags, GrProgramDesc::DescInfo*);
-
- /**
* Alter the program desc and inputs (attribs and processors) based on the blend optimization.
*/
void adjustProgramForBlendOpt(const GrDrawState& ds, GrDrawState::BlendOpt,
GrProgramDesc::DescInfo*,
- int* firstColorStageIdx, int* firstCoverageStageIdx,
- uint8_t* fixedFunctionVAToRemove);
+ int* firstColorStageIdx, int* firstCoverageStageIdx);
/**
* Loop over the effect stages to determine various info like what data they will read and what
* shaders they require.
*/
void getStageStats(const GrDrawState& ds, int firstColorStageIdx, int firstCoverageStageIdx,
- GrProgramDesc::DescInfo*);
+ bool hasLocalCoords, GrProgramDesc::DescInfo*);
/**
* Calculates the primary and secondary output types of the shader. For certain output types
@@ -256,9 +235,6 @@ private:
GrColor fColor;
SkMatrix fViewMatrix;
GrColor fBlendConstant;
- const GrVertexAttrib* fVAPtr;
- int fVACount;
- size_t fVAStride;
GrStencilSettings fStencilSettings;
uint8_t fCoverage;
GrDrawState::DrawFace fDrawFace;
@@ -272,8 +248,6 @@ private:
// This function is equivalent to the offset into fFragmentStages where coverage stages begin.
int fNumColorStages;
- SkAutoSTArray<4, GrVertexAttrib> fOptVA;
-
GrProgramDesc fDesc;
typedef SkRefCnt INHERITED;
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrOptDrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698