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 --- include/camera/Camera.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/camera/Camera.h') diff --git a/include/camera/Camera.h b/include/camera/Camera.h index 81848b3..b1b2e95 100644 --- a/include/camera/Camera.h +++ b/include/camera/Camera.h @@ -83,7 +83,7 @@ public: // pass the buffered IGraphicBufferProducer to the camera service status_t setPreviewTexture(const sp& bufferProducer); - // start preview mode, must call setPreviewDisplay first + // start preview mode, must call setPreviewTexture first status_t startPreview(); // stop preview mode @@ -92,7 +92,7 @@ public: // get preview state bool previewEnabled(); - // start recording mode, must call setPreviewDisplay first + // start recording mode, must call setPreviewTexture first status_t startRecording(); // stop recording mode -- cgit v1.1