diff options
author | Brian Salomon <bsalomon@google.com> | 2018-06-01 14:13:43 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-01 18:59:16 +0000 |
commit | d494f6e3d68269d1a60e864561aa66a7b125be1a (patch) | |
tree | 21541972d90da1252afd765d932020be1dd17a8e /src/gpu/GrContextPriv.h | |
parent | ee56b834fcd5e1834772d8e60195a21811833267 (diff) |
Replace GrContextPriv::read/writeSurfacePixels with GrContextPriv::read/WritePixels2
Change-Id: I08be0f347d360e97bf9a6d1aeb25f9f584cc3d89
Reviewed-on: https://skia-review.googlesource.com/131442
Commit-Queue: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/GrContextPriv.h')
-rw-r--r-- | src/gpu/GrContextPriv.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/gpu/GrContextPriv.h b/src/gpu/GrContextPriv.h index 7e6ecb8310..84de0560fa 100644 --- a/src/gpu/GrContextPriv.h +++ b/src/gpu/GrContextPriv.h @@ -130,9 +130,7 @@ public: }; /** - * Reads a rectangle of pixels from a surface. There are currently two versions of this. - * readSurfacePixels() is the older version which will be replaced by the more robust and - * maintainable (but perhaps slower) readSurfacePixels2(). + * Reads a rectangle of pixels from a surface. * * @param src the surface context to read from. * @param left left edge of the rectangle to read (inclusive) @@ -152,14 +150,9 @@ public: bool readSurfacePixels(GrSurfaceContext* src, int left, int top, int width, int height, GrColorType dstColorType, SkColorSpace* dstColorSpace, void* buffer, size_t rowBytes = 0, uint32_t pixelOpsFlags = 0); - bool readSurfacePixels2(GrSurfaceContext* src, int left, int top, int width, int height, - GrColorType dstColorType, SkColorSpace* dstColorSpace, void* buffer, - size_t rowBytes = 0, uint32_t pixelOpsFlags = 0); /** - * Writes a rectangle of pixels to a surface. There are currently two versions of this. - * writeSurfacePixels() is the older version which will be replaced by the more robust and - * maintainable (but perhaps slower) writeSurfacePixels2(). + * Writes a rectangle of pixels to a surface. * * @param dst the surface context to write to. * @param left left edge of the rectangle to write (inclusive) @@ -178,9 +171,6 @@ public: bool writeSurfacePixels(GrSurfaceContext* dst, int left, int top, int width, int height, GrColorType srcColorType, SkColorSpace* srcColorSpace, const void* buffer, size_t rowBytes, uint32_t pixelOpsFlags = 0); - bool writeSurfacePixels2(GrSurfaceContext* dst, int left, int top, int width, int height, - GrColorType srcColorType, SkColorSpace* srcColorSpace, - const void* buffer, size_t rowBytes, uint32_t pixelOpsFlags = 0); GrBackend getBackend() const { return fContext->fBackend; } |