diff options
author | Brian Salomon <bsalomon@google.com> | 2018-06-01 15:33:20 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-02 01:42:46 +0000 |
commit | a694870ef50c05ce91538d1b4109f373c816b76b (patch) | |
tree | dc7c0aa06c82ae796dec5404e1d37f937d67eaf4 /src/gpu/GrGpu.cpp | |
parent | a9b04b90669e08c1ee4aa826a83c416b24704248 (diff) |
Remove origin from GrGpu::readPixels
Change-Id: I40d046c66240ab40794aa008861a1974f7f9182c
Reviewed-on: https://skia-review.googlesource.com/131620
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/GrGpu.cpp')
-rw-r--r-- | src/gpu/GrGpu.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp index 7f60129d51..5c2864db3c 100644 --- a/src/gpu/GrGpu.cpp +++ b/src/gpu/GrGpu.cpp @@ -214,8 +214,8 @@ bool GrGpu::copySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, canDiscardOutsideDstRect); } -bool GrGpu::readPixels(GrSurface* surface, GrSurfaceOrigin origin, int left, int top, int width, - int height, GrColorType dstColorType, void* buffer, size_t rowBytes) { +bool GrGpu::readPixels(GrSurface* surface, int left, int top, int width, int height, + GrColorType dstColorType, void* buffer, size_t rowBytes) { SkASSERT(surface); int bpp = GrColorTypeBytesPerPixel(dstColorType); @@ -228,8 +228,7 @@ bool GrGpu::readPixels(GrSurface* surface, GrSurfaceOrigin origin, int left, int this->handleDirtyContext(); - return this->onReadPixels(surface, origin, left, top, width, height, dstColorType, buffer, - rowBytes); + return this->onReadPixels(surface, left, top, width, height, dstColorType, buffer, rowBytes); } bool GrGpu::writePixels(GrSurface* surface, int left, int top, int width, int height, |