aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r--src/gpu/GrGpu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index 16561418aa..95c5117799 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -272,6 +272,15 @@ public:
*/
bool readPixels(GrSurface* surface, GrSurfaceOrigin, int left, int top, int width, int height,
GrColorType dstColorType, void* buffer, size_t rowBytes);
+ /**
+ * This version of readPixels doesn't take an origin. TODO: Remove origin handling from
+ * GrGpu::readPixels entirely.
+ */
+ bool readPixels(GrSurface* surface, int left, int top, int width, int height,
+ GrColorType dstColorType, void* buffer, size_t rowBytes) {
+ return this->readPixels(surface, kTopLeft_GrSurfaceOrigin, left, top, width, height,
+ dstColorType, buffer, rowBytes);
+ }
/**
* Updates the pixels in a rectangle of a surface. No sRGB/linear conversions are performed.