diff options
author | halcanary@google.com <halcanary@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-10 18:33:07 +0000 |
---|---|---|
committer | halcanary@google.com <halcanary@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-10 18:33:07 +0000 |
commit | 4d5fb26af2c0433ae37505607d19712a1363fb7c (patch) | |
tree | 5f3c41a14fac7ec5b674a451a8bb936582c70044 | |
parent | f8747106fc99ace3b36fdc7febfddc9398a8f06a (diff) | |
download | gyp-4d5fb26af2c0433ae37505607d19712a1363fb7c.tar.gz |
Implement 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
Review URL: https://codereview.chromium.org/83563002
git-svn-id: http://skia.googlecode.com/svn/trunk/gyp@12608 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | ports.gyp | 2 | ||||
-rw-r--r-- | tests.gyp | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -153,10 +153,12 @@ [ 'skia_os == "android"', { 'sources!': [ '../src/ports/SkDebug_stdio.cpp', + '../src/ports/SkDiscardableMemory_none.cpp', '../src/ports/SkPurgeableMemoryBlock_none.cpp', ], 'sources': [ '../src/ports/SkDebug_android.cpp', + '../src/ports/SkDiscardableMemory_ashmem.cpp', '../src/ports/SkFontConfigInterface_android.cpp', '../src/ports/SkFontConfigParser_android.cpp', '../src/ports/SkFontHost_fontconfig.cpp', @@ -56,6 +56,7 @@ '../tests/DequeTest.cpp', '../tests/DeviceLooperTest.cpp', '../tests/DiscardableMemoryPool.cpp', + '../tests/DiscardableMemoryTest.cpp', '../tests/DocumentTest.cpp', '../tests/DrawBitmapRectTest.cpp', '../tests/DrawPathTest.cpp', |