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

Unified Diff: src/gpu/GrDrawTarget.cpp

Issue 1287433003: Create GrRectBatchFactory (Closed) Base URL: https://skia.googlesource.com/skia.git@batchfactory1
Patch Set: 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 | « gyp/gpu.gypi ('k') | src/gpu/batches/GrRectBatch.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawTarget.cpp
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
index ca2d2d90052df21971b0a482d9116c33a107dbc1..a4662e542a93f88ee3c8f0a5bf20c5d33c6acb88 100644
--- a/src/gpu/GrDrawTarget.cpp
+++ b/src/gpu/GrDrawTarget.cpp
@@ -22,7 +22,7 @@
#include "GrVertexBuffer.h"
#include "batches/GrBatch.h"
-#include "batches/GrRectBatch.h"
+#include "batches/GrRectBatchFactory.h"
#include "SkStrokeRec.h"
@@ -294,8 +294,8 @@ void GrDrawTarget::drawBWRect(const GrPipelineBuilder& pipelineBuilder,
const SkRect& rect,
const SkRect* localRect,
const SkMatrix* localMatrix) {
- SkAutoTUnref<GrBatch> batch(GrRectBatch::Create(color, viewMatrix, rect, localRect,
- localMatrix));
+ SkAutoTUnref<GrBatch> batch(GrRectBatchFactory::Create(color, viewMatrix, rect, localRect,
+ localMatrix));
this->drawBatch(pipelineBuilder, batch);
}
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/batches/GrRectBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698