aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-04-10 13:22:41 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-10 18:00:02 +0000
commitc8e924c236b1b18062d4b219c6ab198d12e30d30 (patch)
treef91e23f0fd9b06c79aa16f59021fbb56135541cc /include
parentae95db4b047a5f1809d760b74b435df28b6b11a3 (diff)
remove unused lockPixelsAreWritable
Bug: skia:4328 Change-Id: I7271a95a52fe6e5de781f83e0d48af5b69892a95 Reviewed-on: https://skia-review.googlesource.com/13066 Reviewed-by: Matt Sarett <msarett@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkBitmap.h9
-rw-r--r--include/core/SkPixelRef.h11
2 files changed, 0 insertions, 20 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index dfdb4604d1..34da542edd 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -452,15 +452,6 @@ public:
*/
void unlockPixels() const;
- /**
- * Some bitmaps can return a copy of their pixels for lockPixels(), but
- * that copy, if modified, will not be pushed back. These bitmaps should
- * not be used as targets for a raster device/canvas (since all pixels
- * modifications will be lost when unlockPixels() is called.)
- */
- // DEPRECATED
- bool lockPixelsAreWritable() const;
-
bool requestLock(SkAutoPixmapUnlock* result) const;
/** Call this to be sure that the bitmap is valid enough to be drawn (i.e.
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h
index 92b50b870d..286c929c8b 100644
--- a/include/core/SkPixelRef.h
+++ b/include/core/SkPixelRef.h
@@ -94,14 +94,6 @@ public:
*/
void unlockPixels();
- /**
- * Some bitmaps can return a copy of their pixels for lockPixels(), but
- * that copy, if modified, will not be pushed back. These bitmaps should
- * not be used as targets for a raster device/canvas (since all pixels
- * modifications will be lost when unlockPixels() is called.)
- */
- bool lockPixelsAreWritable() const;
-
/** Returns a non-zero, unique value corresponding to the pixels in this
pixelref. Each time the pixels are changed (and notifyPixelsChanged is
called), a different generation ID will be returned.
@@ -241,9 +233,6 @@ protected:
*/
virtual void onUnlockPixels() = 0;
- /** Default impl returns true */
- virtual bool onLockPixelsAreWritable() const;
-
// default impl does nothing.
virtual void onNotifyPixelsChanged();