Index: src/lazy/SkDiscardablePixelRef.h |
diff --git a/src/lazy/SkDiscardablePixelRef.h b/src/lazy/SkDiscardablePixelRef.h |
index 313660efc5b0d1362d19c57443b9ee81772b36a3..78dcd66791f3d430da2676f57570f68218e832ca 100644 |
--- a/src/lazy/SkDiscardablePixelRef.h |
+++ b/src/lazy/SkDiscardablePixelRef.h |
@@ -50,8 +50,7 @@ public: |
protected: |
~SkDiscardablePixelRef(); |
- |
- virtual bool onNewLockPixels(LockRec*) SK_OVERRIDE; |
+ virtual void* onLockPixels(SkColorTable**) SK_OVERRIDE; |
virtual void onUnlockPixels() SK_OVERRIDE; |
virtual bool onLockPixelsAreWritable() const SK_OVERRIDE { return false; } |
@@ -62,6 +61,8 @@ protected: |
private: |
SkImageGenerator* const fGenerator; |
SkDiscardableMemory::Factory* const fDMFactory; |
+ const SkImageInfo fInfo; |
+ const size_t fSize; // size of memory to be allocated |
const size_t fRowBytes; |
// These const members should not change over the life of the |
// PixelRef, since the SkBitmap doesn't expect them to change. |
@@ -71,10 +72,8 @@ private: |
/* Takes ownership of SkImageGenerator. */ |
SkDiscardablePixelRef(SkImageGenerator* generator, |
const SkImageInfo& info, |
+ size_t size, |
size_t rowBytes, |
SkDiscardableMemory::Factory* factory); |
- |
- typedef SkPixelRef INHERITED; |
}; |
- |
#endif // SkDiscardablePixelRef_DEFINED |