diff options
author | 2017-06-12 12:09:30 -0400 | |
---|---|---|
committer | 2017-06-12 19:31:53 +0000 | |
commit | 9bada5475f11c796a4e10845d86068218fa84bc8 (patch) | |
tree | f0260156d1e4e723afa29ec629afd012484f0469 /src/gpu/GrOpFlushState.h | |
parent | eb7dc794df98d4b23e00cc441b464a0ebb9f5edb (diff) |
Revert "Revert "Expand partial render target write pixels workaround.""
New version limits the workaround to unorm configs.
This reverts commit fdd117025fb846771e9e47cbf825d9071745fa98.
Change-Id: I47a08a0ea4cf1acd88ca3c1bf9922cf0a8d215cc
Reviewed-on: https://skia-review.googlesource.com/19490
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrOpFlushState.h')
-rw-r--r-- | src/gpu/GrOpFlushState.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/gpu/GrOpFlushState.h b/src/gpu/GrOpFlushState.h index 85a356e44f..402bac5325 100644 --- a/src/gpu/GrOpFlushState.h +++ b/src/gpu/GrOpFlushState.h @@ -72,16 +72,7 @@ public: fAsapUploads.reset(); } - void doUpload(GrDrawOp::DeferredUploadFn& upload) { - GrDrawOp::WritePixelsFn wp = [this] (GrSurface* surface, - int left, int top, int width, int height, - GrPixelConfig config, const void* buffer, - size_t rowBytes) -> bool { - return this->fGpu->writePixels(surface, left, top, width, height, config, buffer, - rowBytes); - }; - upload(wp); - } + void doUpload(GrDrawOp::DeferredUploadFn&); void putBackIndices(size_t indices) { fIndexPool.putBack(indices * sizeof(uint16_t)); } |