diff options
| author | 2015-04-07 18:14:37 +0000 | |
|---|---|---|
| committer | 2015-04-07 18:14:50 +0000 | |
| commit | 11da530a704fc9406d6779c5b985d3394c6a8474 (patch) | |
| tree | 0ccc284b29a954b5af201192d0edd0af7fb129c8 /include/gui/Surface.h | |
| parent | 7b5f82d8d726e4bcd21c19340c0743a728bc0253 (diff) | |
| parent | 1c2001efcf56d7f65242249fa4e5833f03a68e37 (diff) | |
Merge "Cherry-pick dataSpace and BufferItem changes" into lmp-mr1-dev-plus-aosp
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; |