diff options
| author | Garik Badalyan <garikb@codeaurora.org> | 2014-03-22 09:24:36 -0700 |
|---|---|---|
| committer | Linux Build Service Account <lnxbuild@localhost> | 2014-04-16 01:26:23 -0600 |
| commit | e2d958d0d9221279d2287583acf15c073a476db2 (patch) | |
| tree | 142f51226e30b50d5012a853ea62d246ff34ddea /src | |
| parent | 6616a11f1ad694f796193037e9b0ee26c70af2a1 (diff) | |
| download | packages_apps_InCallUI-e2d958d0d9221279d2287583acf15c073a476db2.tar.gz packages_apps_InCallUI-e2d958d0d9221279d2287583acf15c073a476db2.tar.bz2 packages_apps_InCallUI-e2d958d0d9221279d2287583acf15c073a476db2.zip | |
IMS-VT: Don't cache SurfaceTexture of camera preview
Don't cache SurfaceTexture of camera preview.
Change-Id: If3f1a74fcf1b33887625ea5fe6142e4c4222ccf4
CRs-Fixed: 634036
(cherry picked from commit 3b484d9985204313b971baafd381619f8168b507)
Diffstat (limited to 'src')
| -rw-r--r-- | src/com/android/incallui/VideoCallPanel.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/com/android/incallui/VideoCallPanel.java b/src/com/android/incallui/VideoCallPanel.java index d085b76a..f0b8816c 100644 --- a/src/com/android/incallui/VideoCallPanel.java +++ b/src/com/android/incallui/VideoCallPanel.java @@ -386,14 +386,7 @@ public class VideoCallPanel extends RelativeLayout implements TextureView.Surfac if (surface.equals(mCameraPreview.getSurfaceTexture())) { if (DBG) log("Camera surface texture created"); - // Use cached surface texture. - if (mCameraSurface==null) { - log("Caching camera surface texture."); - mCameraSurface = surface; - } else { - log("Resetting camera surface texture"); - mCameraPreview.setSurfaceTexture(mCameraSurface); - } + mCameraSurface = surface; // Initialize Camera as needed. if (isCameraInitNeeded()) { @@ -421,7 +414,8 @@ public class VideoCallPanel extends RelativeLayout implements TextureView.Surfac if (DBG) log("CameraPreview surface texture destroyed"); stopRecordingAndPreview(); closeCamera(); - return false; + mCameraSurface = null; + return true; } else if (surface.equals(mFarEndView.getSurfaceTexture())) { if (DBG) log("FarEndView surface texture destroyed"); return false; @@ -683,9 +677,6 @@ public class VideoCallPanel extends RelativeLayout implements TextureView.Surfac } private void releaseCachedSurfaces() { - release(mCameraSurface); - mCameraSurface = null; - release(mFarEndSurface); mFarEndSurface = null; mVideoCallManager.setFarEndSurface(mFarEndSurface); |
