consolidate debug draw param checking code
git-svn-id: http://skia.googlecode.com/svn/trunk@2613 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index 7d311aa..339399a 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -1371,6 +1371,11 @@
// pushGeometrySource())
void releaseGeometry();
private:
+ // called by drawIndexed and drawNonIndexed. Use a negative indexCount to
+ // indicate non-indexed drawing.
+ bool checkDraw(GrPrimitiveType type, int startVertex,
+ int startIndex, int vertexCount,
+ int indexCount) const;
// called when setting a new vert/idx source to unref prev vb/ib
void releasePreviousVertexSource();
void releasePreviousIndexSource();