diff options
author | Elliott Hughes <enh@google.com> | 2013-03-13 19:28:17 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-03-13 19:28:17 -0700 |
commit | 9b57ad737bceba9f8d4f5be303c70fa72be00eaf (patch) | |
tree | 0c7abf312040b931533ddf72874bbb2c8f9966bc /libs/binder/MemoryBase.cpp | |
parent | 1d6e52d17e2df913e10925c5e3e652d3421ff320 (diff) | |
parent | 8facd1b2ea02796b575f123b420590d2b8354910 (diff) | |
download | frameworks_native-9b57ad737bceba9f8d4f5be303c70fa72be00eaf.zip frameworks_native-9b57ad737bceba9f8d4f5be303c70fa72be00eaf.tar.gz frameworks_native-9b57ad737bceba9f8d4f5be303c70fa72be00eaf.tar.bz2 |
am 8facd1b2: Merge "Add a compatibility symbol for the MemoryBase constructor."
* commit '8facd1b2ea02796b575f123b420590d2b8354910':
Add a compatibility symbol for the MemoryBase constructor.
Diffstat (limited to 'libs/binder/MemoryBase.cpp')
-rw-r--r-- | libs/binder/MemoryBase.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/binder/MemoryBase.cpp b/libs/binder/MemoryBase.cpp index 033066b..835124f 100644 --- a/libs/binder/MemoryBase.cpp +++ b/libs/binder/MemoryBase.cpp @@ -14,6 +14,7 @@ * limitations under the License. */ +#define LOG_TAG "MemoryBase" #include <stdlib.h> #include <stdint.h> @@ -31,6 +32,14 @@ MemoryBase::MemoryBase(const sp<IMemoryHeap>& heap, { } +MemoryBase::MemoryBase(const sp<IMemoryHeap>& heap, + long offset, unsigned int size) + : mSize(size), mOffset(offset), mHeap(heap) +{ + ALOGW("Using temporary compatibility workaround for usage of MemoryBase " + "private API. Please fix your application!"); +} + sp<IMemoryHeap> MemoryBase::getMemory(ssize_t* offset, size_t* size) const { if (offset) *offset = mOffset; |