Index: src/image/SkDataPixelRef.h |
diff --git a/src/image/SkDataPixelRef.h b/src/image/SkDataPixelRef.h |
index 50c885714b91f1c3b3c389b441363a2d499ca707..c2e52cd9e12ccb02b5bea2bf92a674927c7926c1 100644 |
--- a/src/image/SkDataPixelRef.h |
+++ b/src/image/SkDataPixelRef.h |
@@ -14,13 +14,13 @@ class SkData; |
class SkDataPixelRef : public SkPixelRef { |
public: |
- SkDataPixelRef(SkData* data); |
+ SkDataPixelRef(const SkImageInfo&, SkData* data, size_t rowBytes); |
virtual ~SkDataPixelRef(); |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDataPixelRef) |
protected: |
- virtual void* onLockPixels(SkColorTable**) SK_OVERRIDE; |
+ virtual bool onNewLockPixels(LockRec*) SK_OVERRIDE; |
virtual void onUnlockPixels() SK_OVERRIDE; |
virtual size_t getAllocatedSizeInBytes() const SK_OVERRIDE; |
@@ -28,7 +28,8 @@ protected: |
virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE; |
private: |
- SkData* fData; |
+ SkData* fData; |
+ size_t fRB; |
typedef SkPixelRef INHERITED; |
}; |