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 | b661d66013b9803c50dc78ca0247ac39caef443a (patch) | |
tree | 8844bd39ddf6611d60803a015b1861fb8faf0e2b /include/surfaceflinger | |
parent | af2ac558a47d2f69c69755e0ac95b792bd0f1f3b (diff) | |
download | frameworks_native-b661d66013b9803c50dc78ca0247ac39caef443a.zip frameworks_native-b661d66013b9803c50dc78ca0247ac39caef443a.tar.gz frameworks_native-b661d66013b9803c50dc78ca0247ac39caef443a.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 |