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:
parent
1333fc5af9
commit
2cef6ced1e
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user