commit | 5d677d1f0879d5101e38df480a38228a64d63959 | [log] [tgz] |
---|---|---|
author | Zhijun He <zhijunhe@google.com> | Sun May 29 16:52:39 2016 -0700 |
committer | Zhijun He <zhijunhe@google.com> | Thu Jun 02 15:42:57 2016 -0700 |
tree | eb8724a33f7f422d4dd0914e206c19948fc4da68 | |
parent | 827388ba4fd8d5e859858dbb29ced986b9ed77f4 [diff] [blame] |
Camera3: add deferred surface support Initial native implementation and aidl changes for surfaceless support. Bug: 28323863 Change-Id: Id6634c3ef2ecc84422a88f63de0a19a0cb496e96
diff --git a/services/camera/libcameraservice/device3/Camera3OutputStreamInterface.h b/services/camera/libcameraservice/device3/Camera3OutputStreamInterface.h index df89b34..7c09c40 100644 --- a/services/camera/libcameraservice/device3/Camera3OutputStreamInterface.h +++ b/services/camera/libcameraservice/device3/Camera3OutputStreamInterface.h
@@ -39,6 +39,16 @@ * Return if this output stream is for video encoding. */ virtual bool isVideoStream() const = 0; + + /** + * Return if the consumer configuration of this stream is deferred. + */ + virtual bool isConsumerConfigurationDeferred() const = 0; + + /** + * Set the consumer surface to the output stream. + */ + virtual status_t setConsumer(sp<Surface> consumer) = 0; }; } // namespace camera3