summaryrefslogtreecommitdiffstats
path: root/camera/tests
diff options
context:
space:
mode:
authorChih-Chung Chang <chihchung@google.com>2010-01-21 17:31:06 -0800
committerChih-Chung Chang <chihchung@google.com>2010-01-21 20:20:08 -0800
commite1ceec234c618729cc7bd35fecb11744b52c1cc8 (patch)
treed478c2160bfb90b429f13089a92d182ddf0b62e0 /camera/tests
parent177b580f56e91bc5519b8772e696b14f8b5757e2 (diff)
downloadframeworks_base-e1ceec234c618729cc7bd35fecb11744b52c1cc8.zip
frameworks_base-e1ceec234c618729cc7bd35fecb11744b52c1cc8.tar.gz
frameworks_base-e1ceec234c618729cc7bd35fecb11744b52c1cc8.tar.bz2
Add an orientation parameter for overlay, so we can do camera preview in portrait mode.
Diffstat (limited to 'camera/tests')
-rw-r--r--camera/tests/CameraServiceTest/CameraServiceTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/camera/tests/CameraServiceTest/CameraServiceTest.cpp b/camera/tests/CameraServiceTest/CameraServiceTest.cpp
index 29320e0..f89d9d3 100644
--- a/camera/tests/CameraServiceTest/CameraServiceTest.cpp
+++ b/camera/tests/CameraServiceTest/CameraServiceTest.cpp
@@ -283,7 +283,7 @@ public:
virtual void postBuffer(ssize_t offset);
virtual void unregisterBuffers();
virtual sp<OverlayRef> createOverlay(
- uint32_t w, uint32_t h, int32_t format);
+ uint32_t w, uint32_t h, int32_t format, int32_t orientation);
virtual sp<GraphicBuffer> requestBuffer(int bufferIdx, int usage);
// new functions
@@ -346,7 +346,8 @@ void MSurface::waitUntil(int c0, int c1, int c2) {
}
}
-sp<OverlayRef> MSurface::createOverlay(uint32_t w, uint32_t h, int32_t format) {
+sp<OverlayRef> MSurface::createOverlay(uint32_t w, uint32_t h, int32_t format,
+ int32_t orientation) {
// We don't expect this to be called in current hardware.
ASSERT(0);
sp<OverlayRef> dummy;