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>
This commit is contained in:
parent
ae95db4b04
commit
c8e924c236
@ -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.
|
||||
|
@ -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();
|
||||
|
||||
|
@ -278,10 +278,6 @@ void SkBitmap::unlockPixels() const {
|
||||
SkDEBUGCODE(this->validate();)
|
||||
}
|
||||
|
||||
bool SkBitmap::lockPixelsAreWritable() const {
|
||||
return fPixelRef ? fPixelRef->lockPixelsAreWritable() : false;
|
||||
}
|
||||
|
||||
void SkBitmap::setPixels(void* p, SkColorTable* ctable) {
|
||||
if (nullptr == p) {
|
||||
this->setPixelRef(nullptr, 0, 0);
|
||||
|
@ -217,14 +217,6 @@ bool SkPixelRef::requestLock(const LockRequest& request, LockResult* result) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool SkPixelRef::lockPixelsAreWritable() const {
|
||||
return this->onLockPixelsAreWritable();
|
||||
}
|
||||
|
||||
bool SkPixelRef::onLockPixelsAreWritable() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
uint32_t SkPixelRef::getGenerationID() const {
|
||||
uint32_t id = fTaggedGenID.load();
|
||||
if (0 == id) {
|
||||
|
Loading…
Reference in New Issue
Block a user