add rlepixelref file to make, to keep it from bit-rot

update rlepixelref to not use safeRef/safeUnref (as those are gone now)



git-svn-id: http://skia.googlecode.com/svn/trunk@767 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-02-07 19:19:46 +00:00
parent 534240f605
commit b715ef7150
2 changed files with 3 additions and 2 deletions

View File

@ -22,12 +22,12 @@ RLEPixelRef::RLEPixelRef(SkBitmap::RLEPixels* rlep, SkColorTable* ctable)
: SkPixelRef(NULL) {
fRLEPixels = rlep; // we now own this ptr
fCTable = ctable;
ctable->safeRef();
SkSafeRef(ctable);
}
RLEPixelRef::~RLEPixelRef() {
SkDELETE(fRLEPixels);
fCTable->safeUnref();
SkSafeUnref(fCTable);
}
void* RLEPixelRef::onLockPixels(SkColorTable** ct) {

View File

@ -1,3 +1,4 @@
SOURCE := \
SkCreateRLEPixelRef.cpp \
SkImageDecoder.cpp \
SkImageEncoder.cpp