aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpu.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-06-01 14:13:43 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-01 18:59:16 +0000
commitd494f6e3d68269d1a60e864561aa66a7b125be1a (patch)
tree21541972d90da1252afd765d932020be1dd17a8e /src/gpu/GrGpu.h
parentee56b834fcd5e1834772d8e60195a21811833267 (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/GrGpu.h')
-rw-r--r--src/gpu/GrGpu.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index 31870dc833..7c92795c50 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -141,34 +141,6 @@ public:
*/
void resolveRenderTarget(GrRenderTarget*);
- /** Info struct returned by getReadPixelsInfo about performing intermediate draws before
- reading pixels for performance or correctness. */
- struct ReadPixelTempDrawInfo {
- /**
- * If the GrGpu is requesting that the caller do a draw to an intermediate surface then
- * this is descriptor for the temp surface. The draw should always be a rect with dst
- * 0,0,w,h.
- */
- GrSurfaceDesc fTempSurfaceDesc;
- /**
- * Indicates whether there is a performance advantage to using an exact match texture
- * (in terms of width and height) for the intermediate texture instead of approximate.
- */
- SkBackingFit fTempSurfaceFit;
- /**
- * Swizzle to apply during the draw. This is used to compensate for either feature or
- * performance limitations in the underlying 3D API.
- */
- GrSwizzle fSwizzle;
- /**
- * The color type that should be used to read from the temp surface after the draw. This
- * may be different than the original read color type in order to compensate for swizzling.
- * The read data will effectively be in the original color type. The original gamma
- * encoding is always used.
- */
- GrColorType fReadColorType;
- };
-
/** Describes why an intermediate draw must/should be performed before readPixels. */
enum DrawPreference {
/**
@@ -198,15 +170,6 @@ public:
};
/**
- * Used to negotiate whether and how an intermediate draw should or must be performed before
- * a readPixels call. If this returns false then GrGpu could not deduce an intermediate draw
- * that would allow a successful readPixels call. The passed width, height, and rowBytes,
- * must be non-zero and already reflect clipping to the src bounds.
- */
- bool getReadPixelsInfo(GrSurface*, GrSurfaceOrigin, int width, int height, size_t rowBytes,
- GrColorType, GrSRGBConversion, DrawPreference*, ReadPixelTempDrawInfo*);
-
- /**
* Info struct returned by getWritePixelsInfo about performing an intermediate draw in order
* to write pixels to a GrSurface for either performance or correctness reasons.
*/
@@ -554,9 +517,6 @@ private:
virtual GrBuffer* onCreateBuffer(size_t size, GrBufferType intendedType, GrAccessPattern,
const void* data) = 0;
- virtual bool onGetReadPixelsInfo(GrSurface*, GrSurfaceOrigin, int width, int height,
- size_t rowBytes, GrColorType, DrawPreference*,
- ReadPixelTempDrawInfo*) = 0;
virtual bool onGetWritePixelsInfo(GrSurface*, GrSurfaceOrigin, int width, int height,
GrColorType, DrawPreference*, WritePixelTempDrawInfo*) = 0;