DescriptionUse RefPtr for SkBitmap::Allocator in ImageDecoder
ImageFrame:
- Store m_allocator in a RefPtr. (This fixes a potential leak, since we
previously did not ref/deref it. In practice, we always removed it
beforehand anyway.)
- Remove accessor for m_allocator, which was only used by operator=
(which has access to member variables)
ImageDecoder:
- Use a PassRefPtr<SkBitmap::Allocator> in setMemoryAllocator, instead
of a raw pointer.
- Make setMemoryAllocator no longer virtual, since it has no overrides.
ImageFrameGenerator:
- Use a PassRefPtr for methods taking an SkBitmap::Allocator, and
release the ExternalMemoryAllocator to them.
No change in behavior, no new tests
Patch Set 1 #Patch Set 2 : Rebase #Patch Set 3 : Rebase to ToT #
Messages
Total messages: 13 (6 generated)
|