diff options
Diffstat (limited to 'src/gpu/GrSurface.cpp')
-rw-r--r-- | src/gpu/GrSurface.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp index 49753af8f9..4c9e3b4c1e 100644 --- a/src/gpu/GrSurface.cpp +++ b/src/gpu/GrSurface.cpp @@ -139,30 +139,6 @@ bool GrSurfacePriv::AdjustWritePixelParams(int surfaceWidth, ////////////////////////////////////////////////////////////////////////////// -bool GrSurface::writePixels(SkColorSpace* dstColorSpace, int left, int top, int width, int height, - GrPixelConfig config, SkColorSpace* srcColorSpace, const void* buffer, - size_t rowBytes, uint32_t pixelOpsFlags) { - // go through context so that all necessary flushing occurs - GrContext* context = this->getContext(); - if (nullptr == context) { - return false; - } - return context->writeSurfacePixels(this, dstColorSpace, left, top, width, height, config, - srcColorSpace, buffer, rowBytes, pixelOpsFlags); -} - -bool GrSurface::readPixels(SkColorSpace* srcColorSpace, int left, int top, int width, int height, - GrPixelConfig config, SkColorSpace* dstColorSpace, void* buffer, - size_t rowBytes, uint32_t pixelOpsFlags) { - // go through context so that all necessary flushing occurs - GrContext* context = this->getContext(); - if (nullptr == context) { - return false; - } - return context->readSurfacePixels(this, srcColorSpace, left, top, width, height, config, - dstColorSpace, buffer, rowBytes, pixelOpsFlags); -} - bool GrSurface::hasPendingRead() const { const GrTexture* thisTex = this->asTexture(); if (thisTex && thisTex->internalHasPendingRead()) { |