summaryrefslogtreecommitdiff
path: root/include/gui/Surface.h
diff options
context:
space:
mode:
author Eino-Ville Talvala <etalvala@google.com> 2015-02-19 16:10:43 -0800
committer Dan Stoza <stoza@google.com> 2015-04-06 11:24:29 -0700
commit6c450101753d0219b151e79007bcded1bfbb058b (patch)
treef4ae69f0bd11282ec5e969e3dd3f9ba931a791fa /include/gui/Surface.h
parent8d9f899a5e69a652c59d48c70a9c7b0e8100be87 (diff)
DO NOT MERGE Cherry-pick dataSpace and BufferItem changes
DO NOT MERGE Add dataSpace to buffer queues; remove old format enums. (cherry picked from commit 82c6bcc9705eabcaf5b9e45bc81867b0e2d61a02) DO NOT MERGE libgui: Prepare for IGBC::BufferItem removal (cherry picked from commit cf3834db104e0b052056e3a06d46e3f222f0d372) DO NOT MERGE SurfaceFlinger: Stop using IGBC::BufferItem (cherry picked from commit 11611f9be590480d7ea27bf0153558573ddcded2)
Diffstat (limited to 'include/gui/Surface.h')
-rw-r--r--include/gui/Surface.h7
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;