From 1ce7c34e67c2cf58dd88c31f36f4bd62e375f7f0 Mon Sep 17 00:00:00 2001 From: Eino-Ville Talvala Date: Wed, 21 Aug 2013 13:57:21 -0700 Subject: Camera1: Set preview to be asynchronous, and remove dead code - Use the controlledByApp flag to make sure application-bound preview buffer queue is asynchronous as before - Remove setPreviewDisplay in service, since it is no longer in the binder interface - Rename setPreviewTexture to setPreviewTarget, to make it clear it's the only game in town now. Rename only on the binder level and service for now. Bug: 10312644 Change-Id: Icd33a462022f9729a63dc65c69b755cb7969857e --- camera/Camera.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'camera/Camera.cpp') diff --git a/camera/Camera.cpp b/camera/Camera.cpp index 22016a9..bbc4aa4 100644 --- a/camera/Camera.cpp +++ b/camera/Camera.cpp @@ -106,7 +106,7 @@ status_t Camera::setPreviewTexture(const sp& bufferProdu sp c = mCamera; if (c == 0) return NO_INIT; ALOGD_IF(bufferProducer == 0, "app passed NULL surface"); - return c->setPreviewTexture(bufferProducer); + return c->setPreviewTarget(bufferProducer); } // start preview mode @@ -127,7 +127,7 @@ status_t Camera::storeMetaDataInBuffers(bool enabled) return c->storeMetaDataInBuffers(enabled); } -// start recording mode, must call setPreviewDisplay first +// start recording mode, must call setPreviewTexture first status_t Camera::startRecording() { ALOGV("startRecording"); -- cgit v1.1