From b715ef71503efc07c8cad3afd0cb9609dc3947a8 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Mon, 7 Feb 2011 19:19:46 +0000 Subject: 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 --- src/images/SkCreateRLEPixelRef.cpp | 4 ++-- 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 -- cgit v1.2.3