summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-03-12 18:50:57 -0700
committerMathias Agopian <mathias@google.com>2013-03-12 18:50:57 -0700
commit50f28e594dc1ae97a8d63d141994e38af52cd20f (patch)
tree38bb12ec235fe53f2b9bb9bf4c5421d72c2b8635 /test
parent9f5f49764ba7b37b020e89881e27bfb7ee545356 (diff)
downloadandroid_hardware_ti_omap4xxx-50f28e594dc1ae97a8d63d141994e38af52cd20f.tar.gz
android_hardware_ti_omap4xxx-50f28e594dc1ae97a8d63d141994e38af52cd20f.tar.bz2
android_hardware_ti_omap4xxx-50f28e594dc1ae97a8d63d141994e38af52cd20f.zip
remove Surface uses in favor of IGraphicBufferProducer
Change-Id: I0d52884fbe80aa7f29f71bfbedd62162601a1360
Diffstat (limited to 'test')
-rw-r--r--test/CameraHal/camera_test_menu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CameraHal/camera_test_menu.cpp b/test/CameraHal/camera_test_menu.cpp
index bd956a6..a315dc3 100644
--- a/test/CameraHal/camera_test_menu.cpp
+++ b/test/CameraHal/camera_test_menu.cpp
@@ -957,7 +957,7 @@ int configureRecorder() {
}
}
- if ( recorder->setPreviewSurface( surfaceControl->getSurface() ) < 0 ) {
+ if ( recorder->setPreviewSurface( surfaceControl->getSurface()->getIGraphicBufferProducer() ) < 0 ) {
printf("error while configuring preview surface\n");
return -1;
@@ -1080,7 +1080,7 @@ int startPreview() {
params.setPictureSize(captureSize[captureSizeIDX].width, captureSize[captureSizeIDX].height);
camera->setParameters(params.flatten());
- camera->setPreviewDisplay(previewSurface);
+ camera->setPreviewTexture(previewSurface->getIGraphicBufferProducer());
if(!hardwareActive) prevcnt = 0;