diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-08-31 17:08:58 -0700 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-08-31 17:18:38 -0700 |
commit | 3abe8d29864d3e8a9f40be43e5faa10e57a4fac5 (patch) | |
tree | c18a7deca9573c4284349b778d4c7a770231cc78 /services | |
parent | 3ddc7c3f56c6657809764d56d36948dda381d9fb (diff) | |
download | frameworks_av-3abe8d29864d3e8a9f40be43e5faa10e57a4fac5.zip frameworks_av-3abe8d29864d3e8a9f40be43e5faa10e57a4fac5.tar.gz frameworks_av-3abe8d29864d3e8a9f40be43e5faa10e57a4fac5.tar.bz2 |
Remove setPreviewDisplay in CameraService::Client::~Client().
mSurface is released in destructor and setPreviewWindow(0) is
called in Client::disconnect(). setPreviewDisplay is not needed
in destructor.
bug:2964479
Change-Id: I329901659a2af407816c34e02f37143b28183a89
Diffstat (limited to 'services')
-rw-r--r-- | services/camera/libcameraservice/CameraService.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/services/camera/libcameraservice/CameraService.cpp b/services/camera/libcameraservice/CameraService.cpp index c6a9909..d1fbf17 100644 --- a/services/camera/libcameraservice/CameraService.cpp +++ b/services/camera/libcameraservice/CameraService.cpp @@ -336,11 +336,6 @@ CameraService::Client::~Client() { int callingPid = getCallingPid(); LOG1("Client::~Client E (pid %d, this %p)", callingPid, this); - // Clean up the ANativeWindow - if (mSurface != 0) { - setPreviewDisplay(0); - } - // set mClientPid to let disconnet() tear down the hardware mClientPid = callingPid; disconnect(); |