aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-08-10 11:59:02 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-10 11:59:03 -0700
commitb7ee1bf01709887388cea564989289d1572710e7 (patch)
tree963fe0d31886666f7cd78bd6d620e1c3ff664253 /include/gpu
parent14205b114a7d834d0627b8c9acb234f4d809388d (diff)
trivial CL to add drawBatch to GrDrawContext
TBR=bsalomon@google.com BUG=skia: Review URL: https://codereview.chromium.org/1282883002
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrDrawContext.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h
index 7a2223f78f..bb16011a46 100644
--- a/include/gpu/GrDrawContext.h
+++ b/include/gpu/GrDrawContext.h
@@ -259,6 +259,14 @@ public:
const GrStrokeInfo& strokeInfo);
+ /**
+ * Draws a batch
+ *
+ * @param paint describes how to color pixels.
+ * @param batch the batch to draw
+ */
+ void drawBatch(GrRenderTarget*, const GrClip&, const GrPaint&, GrBatch*);
+
private:
friend class GrAtlasTextContext; // for access to drawBatch
friend class GrContext; // for ctor