diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-02-07 19:19:46 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-02-07 19:19:46 +0000 |
commit | b715ef71503efc07c8cad3afd0cb9609dc3947a8 (patch) | |
tree | 8a4ea1fc5b656e2d930882df800fd360499e73a3 | |
parent | 534240f6058773cc2366b8310ed5452286a6dfff (diff) |
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
-rw-r--r-- | src/images/SkCreateRLEPixelRef.cpp | 4 | ||||
-rw-r--r-- | src/images/images_files.mk | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/images/SkCreateRLEPixelRef.cpp b/src/images/SkCreateRLEPixelRef.cpp index 575623749b..a3bf5bc379 100644 --- a/src/images/SkCreateRLEPixelRef.cpp +++ b/src/images/SkCreateRLEPixelRef.cpp @@ -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) { diff --git a/src/images/images_files.mk b/src/images/images_files.mk index a24515dc42..3b90ba2f9c 100644 --- a/src/images/images_files.mk +++ b/src/images/images_files.mk @@ -1,3 +1,4 @@ SOURCE := \ + SkCreateRLEPixelRef.cpp \ SkImageDecoder.cpp \ SkImageEncoder.cpp |