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

Unified Diff: src/gpu/batches/GrTestBatch.h

Issue 1806983002: Update how we send draws to gpu backend to reduce state setting. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 9 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
Index: src/gpu/batches/GrTestBatch.h
diff --git a/src/gpu/batches/GrTestBatch.h b/src/gpu/batches/GrTestBatch.h
index ee92816e4b0d164998a2c8d44d4f64e27a20b1fa..c20d23312f617a5c80f24078a1f42520ee8a4426 100644
--- a/src/gpu/batches/GrTestBatch.h
+++ b/src/gpu/batches/GrTestBatch.h
@@ -60,7 +60,7 @@ protected:
private:
void onPrepareDraws(Target* target) const override {
- target->initDraw(fGeometryProcessor, this->pipeline());
+ target->initDraw(fGeometryProcessor, kTriangles_GrPrimitiveType);
this->generateGeometry(target);
}

Powered by Google App Engine
This is Rietveld 408576698