aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrBatch.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-05-05 09:51:38 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-05 09:51:38 -0700
commitcb8979d088a66ebaf41f10ba6f5c830615aa0e03 (patch)
tree1493797ba71ecb94c3d7ebfb78e4fc6222dce778 /src/gpu/GrBatch.h
parente46760e8b2b2fc4a11a43a3b7cc9da7166c83c46 (diff)
Move DrawInfo out from GrDrawTarget and rename to GrVertices.
Diffstat (limited to 'src/gpu/GrBatch.h')
-rw-r--r--src/gpu/GrBatch.h15
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;