OSDN Git Service

TextureViewHelper workaround for SurfaceTexture/CameraProxy race
authorSol Boucher <solb@google.com>
Wed, 20 Aug 2014 22:54:25 +0000 (15:54 -0700)
committerSolomon Boucher <solb@google.com>
Wed, 20 Aug 2014 23:35:58 +0000 (23:35 +0000)
commit395bc17b71d13d97b3fd9f258fcf4d5748e66e5e
tree1067d6fb5d0bbe3976b1ebd0d22be4f3fe8b82ef
parent096e5b734a18dae5bdca5cc312ad61ce09568f3f
TextureViewHelper workaround for SurfaceTexture/CameraProxy race

CameraController#getCurrentCameraId() now returns the ID of the requested camera
device if called after #requestCamera() but before the camera device has
finished opening. Assuming the most recent request is for the desired API level
and device, this resolves an issue where no transformation matrix was applied on
returning from the settings activity.

Bug: 17140996
Change-Id: Ideaec0072acd8aab77b98b213f260907f84270de
src/com/android/camera/app/CameraController.java