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

Unified Diff: src/gpu/batches/GrNinePatch.cpp

Issue 1835283002: Simplify GrDrawBatch uploads and token uage. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add comments 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/GrNinePatch.cpp
diff --git a/src/gpu/batches/GrNinePatch.cpp b/src/gpu/batches/GrNinePatch.cpp
index 17ab6c1c3031371ed67a7c98e0e260e3b67fbe7d..cca1054fd746aa7c648dbef28f384b960533f041 100644
--- a/src/gpu/batches/GrNinePatch.cpp
+++ b/src/gpu/batches/GrNinePatch.cpp
@@ -91,8 +91,6 @@ private:
return;
}
- target->initDraw(gp);
-
size_t vertexStride = gp->getVertexStride();
int instanceCount = fGeoData.count();
@@ -138,7 +136,7 @@ private:
verts += kVertsPerRect * vertexStride;
}
}
- helper.recordDraw(target);
+ helper.recordDraw(target, gp);
}
void initBatchTracker(const GrXPOverridesForBatch& overrides) override {

Powered by Google App Engine
This is Rietveld 408576698