diff options
author | Brian Salomon <bsalomon@google.com> | 2018-02-05 15:55:54 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-06 12:56:46 +0000 |
commit | 5711133a1b216bfa5d1d24aaffd32dc02c64b333 (patch) | |
tree | 7f50e87e3bca2df9b7f8406a1ffdbb2257275dd2 /src/gpu/GrGpu.cpp | |
parent | b915b978e3c34e7ded50e1433cbc9e342bb71404 (diff) |
Remove integer texture support
Change-Id: I0db1c4d705711b8d980bbe0d986013daec6c8ef3
Reviewed-on: https://skia-review.googlesource.com/103762
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrGpu.cpp')
-rw-r--r-- | src/gpu/GrGpu.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp index 955d57ddb0..d9b3b87397 100644 --- a/src/gpu/GrGpu.cpp +++ b/src/gpu/GrGpu.cpp @@ -190,10 +190,6 @@ bool GrGpu::copySurface(GrSurface* dst, GrSurfaceOrigin dstOrigin, GR_CREATE_TRACE_MARKER_CONTEXT("GrGpu", "copySurface", fContext); SkASSERT(dst && src); this->handleDirtyContext(); - // We don't allow conversion between integer configs and float/fixed configs. - if (GrPixelConfigIsSint(dst->config()) != GrPixelConfigIsSint(src->config())) { - return false; - } return this->onCopySurface(dst, dstOrigin, src, srcOrigin, srcRect, dstPoint); } @@ -262,11 +258,6 @@ bool GrGpu::readPixels(GrSurface* surface, GrSurfaceOrigin origin, size_t rowBytes) { SkASSERT(surface); - // We don't allow conversion between integer configs and float/fixed configs. - if (GrPixelConfigIsSint(surface->config()) != GrPixelConfigIsSint(config)) { - return false; - } - size_t bpp = GrBytesPerPixel(config); if (!GrSurfacePriv::AdjustReadPixelParams(surface->width(), surface->height(), bpp, &left, &top, &width, &height, @@ -305,11 +296,6 @@ bool GrGpu::writePixels(GrSurface* surface, GrSurfaceOrigin origin, } } - // We don't allow conversion between integer configs and float/fixed configs. - if (GrPixelConfigIsSint(surface->config()) != GrPixelConfigIsSint(config)) { - return false; - } - this->handleDirtyContext(); if (this->onWritePixels(surface, origin, left, top, width, height, config, texels, mipLevelCount)) { @@ -336,11 +322,6 @@ bool GrGpu::transferPixels(GrTexture* texture, size_t offset, size_t rowBytes) { SkASSERT(transferBuffer); - // We don't allow conversion between integer configs and float/fixed configs. - if (GrPixelConfigIsSint(texture->config()) != GrPixelConfigIsSint(config)) { - return false; - } - // We require that the write region is contained in the texture SkIRect subRect = SkIRect::MakeXYWH(left, top, width, height); SkIRect bounds = SkIRect::MakeWH(texture->width(), texture->height()); |