aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-04-20 05:40:39 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-20 09:42:32 +0000
commit544e0ad49c11bd349782618de6430bdf8cec0106 (patch)
treecccf072dd81ee3c7030219948e14d5412c2d71fa /include
parentda16434928b4c721b462d780d5140f9fc68d1413 (diff)
remove dead code around SK_SUPPORT_LEGACY_CANVAS_READPIXELS
Bug: skia:6513 Change-Id: I8e4e0ffb371ae5b1af972110339e57d491ad9ff1 Reviewed-on: https://skia-review.googlesource.com/13779 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkCanvas.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index ddbab07480..33a51f7755 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -233,22 +233,6 @@ public:
bool readPixels(const SkPixmap&, int srcX, int srcY);
bool readPixels(const SkBitmap&, int srcX, int srcY);
-#ifdef SK_SUPPORT_LEGACY_CANVAS_READPIXELS
- /**
- * Helper for calling readPixels(info, ...). This call will check if bitmap has been allocated.
- * If not, it will attempt to call allocPixels(). If this fails, it will return false. If not,
- * it calls through to readPixels(info, ...) and returns its result.
- */
- bool readPixels(SkBitmap* bitmap, int srcX, int srcY);
- /**
- * Helper for allocating pixels and then calling readPixels(info, ...). The bitmap is resized
- * to the intersection of srcRect and the base-layer bounds. On success, pixels will be
- * allocated in bitmap and true returned. On failure, false is returned and bitmap will be
- * set to empty.
- */
- bool readPixels(const SkIRect& srcRect, SkBitmap* bitmap);
-#endif
-
/**
* This method affects the pixels in the base-layer, and operates in pixel coordinates,
* ignoring the matrix and clip.