diff options
author | Mathias Agopian <mathias@google.com> | 2010-08-19 17:01:19 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-08-24 15:40:50 -0700 |
commit | e96aa3e859cb747e241dfa2999fcd142a688ed57 (patch) | |
tree | 8b725f12dd84b37345eebaa40951bc401b2e0a3f /include/surfaceflinger | |
parent | 0c76c7c5eedf90b5fa1a95b6a9944b4e58747007 (diff) | |
download | frameworks_base-e96aa3e859cb747e241dfa2999fcd142a688ed57.zip frameworks_base-e96aa3e859cb747e241dfa2999fcd142a688ed57.tar.gz frameworks_base-e96aa3e859cb747e241dfa2999fcd142a688ed57.tar.bz2 |
fix [2931513] Add support for setting the orientation of an ANativeWindow
Also implement support for cropping.
Change-Id: Iba5888dd242bf2feaac9e9ce26e404c1f404c280
Diffstat (limited to 'include/surfaceflinger')
-rw-r--r-- | include/surfaceflinger/Surface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/surfaceflinger/Surface.h b/include/surfaceflinger/Surface.h index 294c867..7c5a39b 100644 --- a/include/surfaceflinger/Surface.h +++ b/include/surfaceflinger/Surface.h @@ -216,6 +216,7 @@ private: int dispatch_crop(va_list args); int dispatch_set_buffer_count(va_list args); int dispatch_set_buffers_geometry(va_list args); + int dispatch_set_buffers_transform(va_list args); void setUsage(uint32_t reqUsage); int connect(int api); @@ -223,6 +224,7 @@ private: int crop(Rect const* rect); int setBufferCount(int bufferCount); int setBuffersGeometry(int w, int h, int format); + int setBuffersTransform(int transform); /* * private stuff... @@ -278,6 +280,7 @@ private: Rect mSwapRectangle; int mConnected; Rect mNextBufferCrop; + uint32_t mNextBufferTransform; BufferInfo mBufferInfo; // protected by mSurfaceLock. These are also used from lock/unlock |