summaryrefslogtreecommitdiffstats
path: root/tests/camera2
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2012-12-18 15:21:32 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-12-18 15:21:32 -0800
commit1da4d3e377b6bc1ba10ec980176b0ff9dc3f591d (patch)
tree6a356f28be372b513049d0d5a6329b9856981f50 /tests/camera2
parentea52a919e8f0a0935243b9593222eb86137eda4a (diff)
parenteda79df3c7e683cb4b73a742d3716b81bb7e899a (diff)
downloadhardware_libhardware-1da4d3e377b6bc1ba10ec980176b0ff9dc3f591d.zip
hardware_libhardware-1da4d3e377b6bc1ba10ec980176b0ff9dc3f591d.tar.gz
hardware_libhardware-1da4d3e377b6bc1ba10ec980176b0ff9dc3f591d.tar.bz2
Merge "Rename ISurfaceTexture and SurfaceTexture"
Diffstat (limited to 'tests/camera2')
-rw-r--r--tests/camera2/camera2.cpp2
-rw-r--r--tests/camera2/camera2_utils.cpp2
-rw-r--r--tests/camera2/camera2_utils.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/camera2/camera2.cpp b/tests/camera2/camera2.cpp
index a15c5e6..75ec73f 100644
--- a/tests/camera2/camera2.cpp
+++ b/tests/camera2/camera2.cpp
@@ -214,7 +214,7 @@ class Camera2Test: public testing::Test {
}
- void setUpStream(sp<ISurfaceTexture> consumer,
+ void setUpStream(sp<IGraphicBufferProducer> consumer,
int width, int height, int format, int *id) {
status_t res;
diff --git a/tests/camera2/camera2_utils.cpp b/tests/camera2/camera2_utils.cpp
index 166ac52..501cd71 100644
--- a/tests/camera2/camera2_utils.cpp
+++ b/tests/camera2/camera2_utils.cpp
@@ -317,7 +317,7 @@ void NotifierListener::notify_callback_dispatch(int32_t msg_type,
(type *)((char*)(ptr) - offsetof(type, member))
#endif
-StreamAdapter::StreamAdapter(sp<ISurfaceTexture> consumer):
+StreamAdapter::StreamAdapter(sp<IGraphicBufferProducer> consumer):
mState(UNINITIALIZED), mDevice(NULL),
mId(-1),
mWidth(0), mHeight(0), mFormat(0)
diff --git a/tests/camera2/camera2_utils.h b/tests/camera2/camera2_utils.h
index 757044b..c846317 100644
--- a/tests/camera2/camera2_utils.h
+++ b/tests/camera2/camera2_utils.h
@@ -161,12 +161,12 @@ class NotifierListener {
};
/**
- * Adapter from an ISurfaceTexture interface to camera2 device stream ops.
+ * Adapter from an IGraphicBufferProducer interface to camera2 device stream ops.
* Also takes care of allocating/deallocating stream in device interface
*/
class StreamAdapter: public camera2_stream_ops {
public:
- StreamAdapter(sp<ISurfaceTexture> consumer);
+ StreamAdapter(sp<IGraphicBufferProducer> consumer);
~StreamAdapter();