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

Unified Diff: src/gpu/GrRODrawState.h

Issue 502533004: Revert of 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
« no previous file with comments | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/GrRODrawState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrRODrawState.h
diff --git a/src/gpu/GrRODrawState.h b/src/gpu/GrRODrawState.h
index 0abd4a6aa54cce8169f5f9a16c93983a747a74d3..231560854fc1bf91f5f519d161dd1a1bad254e70 100644
--- a/src/gpu/GrRODrawState.h
+++ b/src/gpu/GrRODrawState.h
@@ -37,7 +37,7 @@
const GrVertexAttrib* getVertexAttribs() const { return fVAPtr; }
int getVertexAttribCount() const { return fVACount; }
- size_t getVertexStride() const { return fVAStride; }
+ size_t getVertexSize() const { return fVertexSize; }
/**
* Getters for index into getVertexAttribs() for particular bindings. -1 is returned if the
@@ -340,6 +340,8 @@
kB_CombinedState,
};
+ GrRODrawState& operator= (const GrRODrawState& that);
+
protected:
bool isEqual(const GrRODrawState& that) const;
@@ -351,7 +353,7 @@
uint32_t fFlagBits;
const GrVertexAttrib* fVAPtr;
int fVACount;
- size_t fVAStride;
+ size_t fVertexSize;
GrStencilSettings fStencilSettings;
uint8_t fCoverage;
DrawFace fDrawFace;
« no previous file with comments | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/GrRODrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698