Remove unused SkBitmapProvider functions

Bug: skia:
Change-Id: Ia4f49fbb350ba9380dfa7c534eee81da1a6c92b5
Reviewed-on: https://skia-review.googlesource.com/c/163861
Commit-Queue: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
Auto-Submit: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
This commit is contained in:
Brian Osman 2018-10-19 11:48:32 -04:00 committed by Skia Commit-Bot
parent 1333fc5af9
commit 2cef6ced1e
2 changed files with 0 additions and 30 deletions

View File

@ -7,29 +7,6 @@
#include "SkBitmapProvider.h"
#include "SkImage_Base.h"
#include "SkPixelRef.h"
int SkBitmapProvider::width() const {
return fImage->width();
}
int SkBitmapProvider::height() const {
return fImage->height();
}
uint32_t SkBitmapProvider::getID() const {
return fImage->uniqueID();
}
SkImageInfo SkBitmapProvider::info() const {
return as_IB(fImage)->onImageInfo();
}
bool SkBitmapProvider::isVolatile() const {
// add flag to images?
const SkBitmap* bm = as_IB(fImage)->onPeekBitmap();
return bm ? bm->isVolatile() : false;
}
SkBitmapCacheDesc SkBitmapProvider::makeCacheDesc() const {
return SkBitmapCacheDesc::Make(fImage);

View File

@ -21,13 +21,6 @@ public:
: fImage(other.fImage)
{}
int width() const;
int height() const;
uint32_t getID() const;
SkImageInfo info() const;
bool isVolatile() const;
SkBitmapCacheDesc makeCacheDesc() const;
void notifyAddedToCache() const;