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

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

Issue 1457123002: Make block size a template parameter of SkTLList (Closed) Base URL: https://skia.googlesource.com/skia.git@forward
Patch Set: another missing typename Created 5 years, 1 month 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 | « src/gpu/batches/GrVertexBatch.h ('k') | tests/LListTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/batches/GrVertexBatch.cpp
diff --git a/src/gpu/batches/GrVertexBatch.cpp b/src/gpu/batches/GrVertexBatch.cpp
index 9ffe5180b7dfc70cdbfc754a9ffe6f45f52955f5..5897fe95c47bcbfeb709b0fdd121e3ecade42380 100644
--- a/src/gpu/batches/GrVertexBatch.cpp
+++ b/src/gpu/batches/GrVertexBatch.cpp
@@ -9,7 +9,7 @@
#include "GrBatchFlushState.h"
#include "GrResourceProvider.h"
-GrVertexBatch::GrVertexBatch(uint32_t classID) : INHERITED(classID), fDrawArrays(1) {}
+GrVertexBatch::GrVertexBatch(uint32_t classID) : INHERITED(classID) {}
void GrVertexBatch::onPrepare(GrBatchFlushState* state) {
Target target(state, this);
@@ -65,7 +65,7 @@ void GrVertexBatch::onDraw(GrBatchFlushState* state) {
// Iterate of all the drawArrays. Before issuing the draws in each array, perform any inline
// uploads.
- for (SkTLList<DrawArray>::Iter da(fDrawArrays); da.get(); da.next()) {
+ for (DrawArrayList::Iter da(fDrawArrays); da.get(); da.next()) {
state->advanceLastFlushedToken();
while (currUpload < uploadCnt &&
fInlineUploads[currUpload]->lastUploadToken() <= state->lastFlushedToken()) {
« no previous file with comments | « src/gpu/batches/GrVertexBatch.h ('k') | tests/LListTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698