aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-04-05 16:39:19 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-06 12:58:26 +0000
commitdc57b5d49647b6f6685df998ee7d81200ba7f652 (patch)
tree0931cba511cec6eb2456a21cc12947c99d6e2138 /include
parent6276a7c9996e9b8d834992dbaa21880f50fe7601 (diff)
remove SK_SUPPORT_LEGACY_BITMAP_SETPIXELREF flag and code
Bug: skia: Change-Id: I234d221d685a6feab891cbca84869177b4a954bb Reviewed-on: https://skia-review.googlesource.com/11404 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkBitmap.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index 5a1036cc56..24d9071586 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -440,25 +440,6 @@ public:
*/
void setPixelRef(sk_sp<SkPixelRef>, int dx, int dy);
-#ifdef SK_SUPPORT_LEGACY_BITMAP_SETPIXELREF
- /**
- * Assign a pixelref and origin to the bitmap. Pixelrefs are reference,
- * so the existing one (if any) will be unref'd and the new one will be
- * ref'd. (x,y) specify the offset within the pixelref's pixels for the
- * top/left corner of the bitmap. For a bitmap that encompases the entire
- * pixels of the pixelref, these will be (0,0).
- */
- SkPixelRef* setPixelRef(SkPixelRef* pr, int dx, int dy);
-
- SkPixelRef* setPixelRef(SkPixelRef* pr, const SkIPoint& origin) {
- return this->setPixelRef(pr, origin.fX, origin.fY);
- }
-
- SkPixelRef* setPixelRef(SkPixelRef* pr) {
- return this->setPixelRef(pr, 0, 0);
- }
-#endif
-
/** Call this to ensure that the bitmap points to the current pixel address
in the pixelref. Balance it with a call to unlockPixels(). These calls
are harmless if there is no pixelref.