diff options
| author | 2015-03-20 18:36:18 +0000 | |
|---|---|---|
| committer | 2015-03-20 18:36:19 +0000 | |
| commit | f44d13e7e574f181750fa37f439ab50cf05ab3df (patch) | |
| tree | 71f7dce92ae7d73b1308097d424d5e98c61bed72 /include/gui/Surface.h | |
| parent | f320149886ba8ab8849c8b8f3df256e3789f3905 (diff) | |
| parent | 82c6bcc9705eabcaf5b9e45bc81867b0e2d61a02 (diff) | |
Merge "DO NOT MERGE Add dataSpace to buffer queues; remove old format enums."
Diffstat (limited to 'include/gui/Surface.h')
| -rw-r--r-- | include/gui/Surface.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/gui/Surface.h b/include/gui/Surface.h index 863f22bb0d..40e2fc1549 100644 --- a/include/gui/Surface.h +++ b/include/gui/Surface.h @@ -146,6 +146,7 @@ private: int dispatchLock(va_list args); int dispatchUnlockAndPost(va_list args); int dispatchSetSidebandStream(va_list args); + int dispatchSetBuffersDataSpace(va_list args); protected: virtual int dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd); @@ -168,6 +169,7 @@ protected: virtual int setBuffersTransform(uint32_t transform); virtual int setBuffersStickyTransform(uint32_t transform); virtual int setBuffersTimestamp(int64_t timestamp); + virtual int setBuffersDataSpace(android_dataspace dataSpace); virtual int setCrop(Rect const* rect); virtual int setUsage(uint32_t reqUsage); @@ -223,6 +225,11 @@ private: // a timestamp is auto-generated when queueBuffer is called. int64_t mTimestamp; + // mDataSpace is the buffer dataSpace that will be used for the next buffer + // queue operation. It defaults to HAL_DATASPACE_UNKNOWN, which + // means that the buffer contains some type of color data. + android_dataspace mDataSpace; + // mCrop is the crop rectangle that will be used for the next buffer // that gets queued. It is set by calling setCrop. Rect mCrop; |