summaryrefslogtreecommitdiffstats
path: root/libs/gui/include
diff options
context:
space:
mode:
authorPeiyong Lin <lpy@google.com>2019-06-25 17:25:02 -0700
committerPeiyong Lin <lpy@google.com>2019-06-26 11:32:25 -0700
commit0f6a41299aa367762dbbb49e51d6073c4ca4ba8f (patch)
treed9155a2e8eba224f78c9fc0742d7f33ab3270da8 /libs/gui/include
parent57e206513f87b5af6b0a32ca6e9f245cd5b78040 (diff)
downloadandroid_frameworks_native-0f6a41299aa367762dbbb49e51d6073c4ca4ba8f.tar.gz
android_frameworks_native-0f6a41299aa367762dbbb49e51d6073c4ca4ba8f.tar.bz2
android_frameworks_native-0f6a41299aa367762dbbb49e51d6073c4ca4ba8f.zip
Attach color space information when attach and queue buffer.
Currently when calling attachAndQueueBuffer, the color space information is lost. This results in color shift if the color space doesn't match the color space of the surface. BUG: b/135002842, b/131928312 Test: boot. Manually verified on P19 Change-Id: I1d77c9994f50d9a2f5cfde96ca805f7142fddfab
Diffstat (limited to 'libs/gui/include')
-rw-r--r--libs/gui/include/gui/Surface.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/gui/include/gui/Surface.h b/libs/gui/include/gui/Surface.h
index 0c471bb70..5c6a1ee38 100644
--- a/libs/gui/include/gui/Surface.h
+++ b/libs/gui/include/gui/Surface.h
@@ -292,7 +292,8 @@ public:
ui::Dataspace getBuffersDataSpace();
- static status_t attachAndQueueBuffer(Surface* surface, sp<GraphicBuffer> buffer);
+ static status_t attachAndQueueBufferWithDataspace(Surface* surface, sp<GraphicBuffer> buffer,
+ ui::Dataspace dataspace);
protected:
enum { NUM_BUFFER_SLOTS = BufferQueueDefs::NUM_BUFFER_SLOTS };