diff options
Diffstat (limited to 'core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java')
-rw-r--r-- | core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java b/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java index fb5b13c..c74204d 100644 --- a/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java +++ b/core/java/android/hardware/camera2/impl/CameraCaptureSessionImpl.java @@ -144,6 +144,11 @@ public class CameraCaptureSessionImpl extends CameraCaptureSession { } @Override + public void prepare(Surface surface) throws CameraAccessException { + mDeviceImpl.prepare(surface); + } + + @Override public synchronized int capture(CaptureRequest request, CaptureCallback callback, Handler handler) throws CameraAccessException { if (request == null) { @@ -589,6 +594,13 @@ public class CameraCaptureSessionImpl extends CameraCaptureSession { } } } + + @Override + public void onSurfacePrepared(Surface surface) { + if (VERBOSE) Log.v(TAG, mIdString + "onPrepared"); + mStateCallback.onSurfacePrepared(session, surface); + } + }; } |