aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-03-19 18:42:25 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-19 18:42:36 +0000
commitbe5947c2f38a79b7c709accfb1047d8fd06a0227 (patch)
tree22d4d6e3f37d2a417656f1d74e9eff507d88b6d9 /include
parentc9a642edf2d1c7f5380fe829adbb1a692f9969a6 (diff)
Revert "New read pixels implementation that is simpler but does all conversions on CPU."
This reverts commit c9a642edf2d1c7f5380fe829adbb1a692f9969a6. Reason for revert: 1010102 gms broke Original change's description: > New read pixels implementation that is simpler but does all conversions on CPU. > > Change-Id: Ia548cd24a8544b35a233311706faf48de353b7cf > Reviewed-on: https://skia-review.googlesource.com/109902 > Commit-Queue: Brian Salomon <bsalomon@google.com> > Reviewed-by: Robert Phillips <robertphillips@google.com> TBR=bsalomon@google.com,robertphillips@google.com,brianosman@google.com Change-Id: I7724a6eef79885ba2a32c1ac871e5b2a9a3c0c12 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://skia-review.googlesource.com/115140 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrCaps.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index 02a51a092d..27ad6a164d 100644
--- a/include/gpu/GrCaps.h
+++ b/include/gpu/GrCaps.h
@@ -186,15 +186,7 @@ public:
* If this returns false then the caller should implement a fallback where a temporary texture
* is created, pixels are written to it, and then that is copied or drawn into the the surface.
*/
- virtual bool surfaceSupportsWritePixels(const GrSurface*) const = 0;
-
- /**
- * Backends may have restrictions on what types of surfaces support GrGpu::readPixels().
- * If this returns false then the caller should implement a fallback where a temporary texture
- * is created, the surface is drawn or copied into the temporary, and pixels are read from the
- * temporary.
- */
- virtual bool surfaceSupportsReadPixels(const GrSurface*) const = 0;
+ virtual bool surfaceSupportsWritePixels(const GrSurface* surface) const = 0;
/**
* Given a dst pixel config and a src color type what color type must the caller coax the
@@ -205,15 +197,6 @@ public:
return GrPixelConfigToColorType(config);
}
- /**
- * Given a src pixel config and a dst color type what color type must the caller read to using
- * GrGpu::readPixels() and then coax into dstColorType.
- */
- virtual GrColorType supportedReadPixelsColorType(GrPixelConfig config,
- GrColorType /*dstColorType*/) const {
- return GrPixelConfigToColorType(config);
- }
-
bool suppressPrints() const { return fSuppressPrints; }
size_t bufferMapThreshold() const {