diff options
author | Dan Stoza <stoza@google.com> | 2015-04-27 11:31:12 -0700 |
---|---|---|
committer | Dan Stoza <stoza@google.com> | 2015-04-27 11:31:12 -0700 |
commit | 3316452ffa74ea9a44d157c4d0cacdca3ad99fc9 (patch) | |
tree | 2af08cf04d354e70dc266ad4c8e97e9c91a8e919 /media/jni | |
parent | 1f0943dd2ce8ae2e9610cd59858fbfd7511d5df3 (diff) | |
download | frameworks_base-3316452ffa74ea9a44d157c4d0cacdca3ad99fc9.zip frameworks_base-3316452ffa74ea9a44d157c4d0cacdca3ad99fc9.tar.gz frameworks_base-3316452ffa74ea9a44d157c4d0cacdca3ad99fc9.tar.bz2 |
ImageWriter: Change detach to sp<GraphicBuffer>
Changes the call to IGBP::detachNextBuffer to return an
sp<GraphicBuffer> instead of an ANativeWindowBuffer*.
Bug: 20092217
Change-Id: I59d6acef7120de5040c6710aeecfa1633ec7f736
Diffstat (limited to 'media/jni')
-rw-r--r-- | media/jni/android_media_ImageWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/jni/android_media_ImageWriter.cpp b/media/jni/android_media_ImageWriter.cpp index 8c76665..294cd84 100644 --- a/media/jni/android_media_ImageWriter.cpp +++ b/media/jni/android_media_ImageWriter.cpp @@ -160,7 +160,7 @@ void JNIImageWriterContext::onBufferReleased() { // Writer. Do the detach unconditionally for opaque format now. see b/19977520 if (mFormat == HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED) { sp<Fence> fence; - ANativeWindowBuffer* buffer; + sp<GraphicBuffer> buffer; ALOGV("%s: One buffer is detached", __FUNCTION__); mProducer->detachNextBuffer(&buffer, &fence); } |