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

Unified Diff: src/gpu/GrBatchFlushState.h

Issue 1904723003: Revert of Use transfer buffer for BatchAtlas texture copies (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « src/gpu/GrBatchAtlas.cpp ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrBatchFlushState.h
diff --git a/src/gpu/GrBatchFlushState.h b/src/gpu/GrBatchFlushState.h
index ee7e3a0afae152d8eaf3133bc0a5113770e27ec0..0b2e2bd239450eb1584a69142b391a8c531cd43f 100644
--- a/src/gpu/GrBatchFlushState.h
+++ b/src/gpu/GrBatchFlushState.h
@@ -77,14 +77,7 @@
return this->fGpu->writePixels(surface, left, top, width, height, config, buffer,
rowBytes);
};
- GrDrawBatch::TransferPixelsFn tp = [this](GrTexture* texture,
- int left, int top, int width, int height,
- GrPixelConfig config, GrBuffer* buffer,
- size_t offset, size_t rowBytes) -> bool {
- return this->fGpu->transferPixels(texture, left, top, width, height, config, buffer,
- offset, rowBytes);
- };
- upload(wp, tp);
+ upload(wp);
}
void putBackIndices(size_t indices) { fIndexPool.putBack(indices * sizeof(uint16_t)); }
« no previous file with comments | « src/gpu/GrBatchAtlas.cpp ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698