summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-02-19 18:25:33 -0800
committerMathias Agopian <mathias@google.com>2013-02-19 18:25:33 -0800
commita6843669d4da47755ce97fb85389d4d1c52b8197 (patch)
treece9b36fa01d3140cc7b2b7af91bcfb0dc6dea957 /services
parent2f8025eef6c681920579f75d298a262b12a80ac9 (diff)
downloadframeworks_av-a6843669d4da47755ce97fb85389d4d1c52b8197.zip
frameworks_av-a6843669d4da47755ce97fb85389d4d1c52b8197.tar.gz
frameworks_av-a6843669d4da47755ce97fb85389d4d1c52b8197.tar.bz2
replace getISurfaceTexture by getIGraphicBufferProducer
Change-Id: I723a3863558126f2635a544a39bb3ec88d499c60
Diffstat (limited to 'services')
-rw-r--r--services/camera/libcameraservice/Camera2Client.cpp2
-rw-r--r--services/camera/libcameraservice/CameraClient.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/services/camera/libcameraservice/Camera2Client.cpp b/services/camera/libcameraservice/Camera2Client.cpp
index b9feaf8..e8b3b7f 100644
--- a/services/camera/libcameraservice/Camera2Client.cpp
+++ b/services/camera/libcameraservice/Camera2Client.cpp
@@ -488,7 +488,7 @@ status_t Camera2Client::setPreviewDisplay(
sp<IBinder> binder;
sp<ANativeWindow> window;
if (surface != 0) {
- binder = surface->getISurfaceTexture()->asBinder();
+ binder = surface->getIGraphicBufferProducer()->asBinder();
window = surface;
}
diff --git a/services/camera/libcameraservice/CameraClient.cpp b/services/camera/libcameraservice/CameraClient.cpp
index 5f03a1c..f67c9f4 100644
--- a/services/camera/libcameraservice/CameraClient.cpp
+++ b/services/camera/libcameraservice/CameraClient.cpp
@@ -301,7 +301,7 @@ status_t CameraClient::setPreviewWindow(const sp<IBinder>& binder,
status_t CameraClient::setPreviewDisplay(const sp<Surface>& surface) {
LOG1("setPreviewDisplay(%p) (pid %d)", surface.get(), getCallingPid());
- sp<IBinder> binder(surface != 0 ? surface->getISurfaceTexture()->asBinder() : 0);
+ sp<IBinder> binder(surface != 0 ? surface->getIGraphicBufferProducer()->asBinder() : 0);
sp<ANativeWindow> window(surface);
return setPreviewWindow(binder, window);
}