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

Unified Diff: src/gpu/GrRODrawState.h

Issue 511593004: Make setVertexAttribs in GrDrawState take a stride parameter. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrRODrawState.h
diff --git a/src/gpu/GrRODrawState.h b/src/gpu/GrRODrawState.h
index 231560854fc1bf91f5f519d161dd1a1bad254e70..0abd4a6aa54cce8169f5f9a16c93983a747a74d3 100644
--- a/src/gpu/GrRODrawState.h
+++ b/src/gpu/GrRODrawState.h
@@ -37,7 +37,7 @@ public:
const GrVertexAttrib* getVertexAttribs() const { return fVAPtr; }
int getVertexAttribCount() const { return fVACount; }
- size_t getVertexSize() const { return fVertexSize; }
+ size_t getVertexStride() const { return fVAStride; }
/**
* Getters for index into getVertexAttribs() for particular bindings. -1 is returned if the
@@ -340,8 +340,6 @@ public:
kB_CombinedState,
};
- GrRODrawState& operator= (const GrRODrawState& that);
-
protected:
bool isEqual(const GrRODrawState& that) const;
@@ -353,7 +351,7 @@ protected:
uint32_t fFlagBits;
const GrVertexAttrib* fVAPtr;
int fVACount;
- size_t fVertexSize;
+ size_t fVAStride;
GrStencilSettings fStencilSettings;
uint8_t fCoverage;
DrawFace fDrawFace;

Powered by Google App Engine
This is Rietveld 408576698