Have SkPicture inherit from SkRefCnt.
This re-enables adoption tracking for SkPictures in Blink, which should be green now that crrev.com/1136123011 has landed. BUG=skia:3847 Review URL: https://codereview.chromium.org/1145153002
This commit is contained in:
parent
2e172ecd3b
commit
fd6a07b1e8
@ -28,10 +28,7 @@ struct SkPictInfo;
|
|||||||
An SkPicture records drawing commands made to a canvas to be played back at a later time.
|
An SkPicture records drawing commands made to a canvas to be played back at a later time.
|
||||||
This base class handles serialization and a few other miscellany.
|
This base class handles serialization and a few other miscellany.
|
||||||
*/
|
*/
|
||||||
// TODO(mtklein): logically this could be : public SkRefCnt, but that exposes
|
class SK_API SkPicture : public SkRefCnt {
|
||||||
// some ref-count adoption bugs in Blink. Keeping this using SkNVRefCnt
|
|
||||||
// happens to stifle them for now. skia:3847
|
|
||||||
class SK_API SkPicture : public SkNVRefCnt<SkPicture> {
|
|
||||||
public:
|
public:
|
||||||
virtual ~SkPicture();
|
virtual ~SkPicture();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user