diff options
author | 2015-05-05 09:51:38 -0700 | |
---|---|---|
committer | 2015-05-05 09:51:38 -0700 | |
commit | cb8979d088a66ebaf41f10ba6f5c830615aa0e03 (patch) | |
tree | 1493797ba71ecb94c3d7ebfb78e4fc6222dce778 /src/gpu/GrBatch.h | |
parent | e46760e8b2b2fc4a11a43a3b7cc9da7166c83c46 (diff) |
Move DrawInfo out from GrDrawTarget and rename to GrVertices.
Review URL: https://codereview.chromium.org/1124733004
Diffstat (limited to 'src/gpu/GrBatch.h')
-rw-r--r-- | src/gpu/GrBatch.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gpu/GrBatch.h b/src/gpu/GrBatch.h index d03fa67781..dc01db4f20 100644 --- a/src/gpu/GrBatch.h +++ b/src/gpu/GrBatch.h @@ -9,10 +9,9 @@ #define GrBatch_DEFINED #include <new> -// TODO remove this header when we move entirely to batch -#include "GrDrawTarget.h" #include "GrBatchTarget.h" #include "GrGeometryProcessor.h" +#include "GrVertices.h" #include "SkRefCnt.h" #include "SkThread.h" #include "SkTypes.h" @@ -126,15 +125,15 @@ protected: /** Call after init() to issue draws to the batch target.*/ void issueDraws(GrBatchTarget* batchTarget) { - SkASSERT(fDrawInfo.instanceCount()); + SkASSERT(fVertices.instanceCount()); do { - batchTarget->draw(fDrawInfo); - } while (fDrawInfo.nextInstances(&fInstancesRemaining, fMaxInstancesPerDraw)); + batchTarget->draw(fVertices); + } while (fVertices.nextInstances(&fInstancesRemaining, fMaxInstancesPerDraw)); } private: - int fInstancesRemaining; - int fMaxInstancesPerDraw; - GrDrawTarget::DrawInfo fDrawInfo; + int fInstancesRemaining; + int fMaxInstancesPerDraw; + GrVertices fVertices; }; static const int kVerticesPerQuad = 4; |