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

Unified Diff: src/gpu/batches/GrVertexBatch.h

Issue 1806983002: Update how we send draws to gpu backend to reduce state setting. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: nit Created 4 years, 9 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/batches/GrTestBatch.h ('k') | src/gpu/batches/GrVertexBatch.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/batches/GrVertexBatch.h
diff --git a/src/gpu/batches/GrVertexBatch.h b/src/gpu/batches/GrVertexBatch.h
index d0daf591412382c98cf3535b04a9c6f1e402ee32..16ba603962a4473b746ee3bfbab8e04a23f38444 100644
--- a/src/gpu/batches/GrVertexBatch.h
+++ b/src/gpu/batches/GrVertexBatch.h
@@ -9,9 +9,9 @@
#define GrVertexBatch_DEFINED
#include "GrDrawBatch.h"
+#include "GrMesh.h"
#include "GrPrimitiveProcessor.h"
#include "GrPendingProgramElement.h"
-#include "GrVertices.h"
#include "SkTLList.h"
@@ -41,7 +41,7 @@ protected:
/** Call after init() to issue draws to the batch target.*/
void recordDraw(Target* target);
private:
- GrVertices fVertices;
+ GrMesh fMesh;
};
static const int kVerticesPerQuad = 4;
@@ -71,7 +71,7 @@ private:
// primitive processor. All the draws in a DrawArray share a primitive processor and use the
// the batch's GrPipeline.
struct DrawArray {
- SkSTArray<1, GrVertices, true> fDraws;
+ SkSTArray<1, GrMesh, true> fDraws;
GrPendingProgramElement<const GrPrimitiveProcessor> fPrimitiveProcessor;
};
« no previous file with comments | « src/gpu/batches/GrTestBatch.h ('k') | src/gpu/batches/GrVertexBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698