Change (correct) SkImageRef's ownership rule for streams to the skia standard
authorreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 16 Mar 2009 13:53:11 +0000 (13:53 +0000)
committerreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 16 Mar 2009 13:53:11 +0000 (13:53 +0000)
commit791f5a11f22abfa7f8f90c37c98a5f654c7fb4c5
tree02572df249a0856aa2beddb8d2b1617e8882f96b
parent6f8491bf76cba6c198416048fe577d29b252474b
Change (correct) SkImageRef's ownership rule for streams to the skia standard
pattern: the receiver will call ref() if it chooses when passed to a constructor
or setter, so the caller must balance its ownership itself. This matches how all
other refcnt objects are handled.

git-svn-id: http://skia.googlecode.com/svn/trunk@120 2bbb7eff-a529-9590-31e7-b0007b416f81
samplecode/SampleBitmapRect.cpp
samplecode/SampleEncode.cpp
samplecode/SampleFontScalerTest.cpp
samplecode/SampleImage.cpp
samplecode/SampleImageDir.cpp
samplecode/SamplePatch.cpp
samplecode/SampleTextAlpha.cpp
samplecode/SampleVertices.cpp