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

Unified Diff: src/gpu/GrDrawContext.cpp

Issue 1282883002: trivial CL to add drawBatch to GrDrawContext (Closed) Base URL: https://skia.googlesource.com/skia.git@batchfactory4
Patch Set: tidy Created 5 years, 4 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 | « include/gpu/GrDrawContext.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawContext.cpp
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp
index 6aa45a10a5fb038d8b493d4aecbdd5f8dcd056f0..c5cb8559f35f3281067801e934f8c4664af9928f 100644
--- a/src/gpu/GrDrawContext.cpp
+++ b/src/gpu/GrDrawContext.cpp
@@ -656,6 +656,19 @@ static bool is_nested_rects(const SkMatrix& viewMatrix,
return allEq || allGoE1;
}
+void GrDrawContext::drawBatch(GrRenderTarget* rt, const GrClip& clip,
+ const GrPaint& paint, GrBatch* batch) {
+ RETURN_IF_ABANDONED
+
+ AutoCheckFlush acf(fContext);
+ if (!this->prepareToDraw(rt)) {
+ return;
+ }
+
+ GrPipelineBuilder pipelineBuilder(paint, rt, clip);
+ fDrawTarget->drawBatch(pipelineBuilder, batch);
+}
+
void GrDrawContext::drawPath(GrRenderTarget* rt,
const GrClip& clip,
const GrPaint& paint,
« no previous file with comments | « include/gpu/GrDrawContext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698