DescriptionRefPtr -> SkAutoTUnref on SkStream to remove SkRefCnt.
SkStream is currently SkRefCnt, but this has never been useful, and is
often a problem. As a result, SkStream will soon no longer be reference
counted. RefPtr places a number of constraints on the class being
reference counted, so use SkAutoTUnref in the mean time to stage the
reference counting removal.
The plan is to change this one instance to SkAutoTUnref, then make
SkStream no longer reference counted but contain a 'dummy' unref().
The use of SkAutoTUnref here will then be removed and SkStream's
'dummy' unref() will be removed.
The proposed changes to SkStream can be seen at
https://codereview.chromium.org/849103004/ .
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188693
Patch Set 1 #
Messages
Total messages: 10 (3 generated)
|