DescriptionImplement SkAshmemDiscardableMemory
- Implement ashmem-backed SkDiscardableMemory subclass:
This class in only accesible via the SkDiscardableMemory::Create()
function, which replaces the mock implementation in
SkDiscardableMemory_none.cpp
- Added SkDiscardableMemory_ashmem.cpp to the Android port of Skia
Removed SkDiscardableMemory_none.cpp from the Android port.
- Added DiscardableMemoryTest.
Still needs work.
- SkDiscardablePixelRef Bugfix:
onLockPixels() now calls SkDELETE on the SkDiscardableMemory pointer
when it fails to unlock.
- Improved documentation inside ashmem.h
BUG=
R=scroggo@google.com
Committed: https://code.google.com/p/skia/source/detail?r=12608
Patch Set 1 #Patch Set 2 : bugfix #
Total comments: 19
Patch Set 3 : fixes from scroggo #
Total comments: 2
Patch Set 4 : unstatic #Patch Set 5 : rebase #Patch Set 6 : FLAGS_useVolatileCache #Patch Set 7 : remove extra locking #Patch Set 8 : final rebase #
Messages
Total messages: 11 (0 generated)
|