summaryrefslogtreecommitdiffstats
path: root/libs/gui/include
diff options
context:
space:
mode:
authorAdy Abraham <adyabr@google.com>2019-02-13 16:07:27 -0800
committerAdy Abraham <adyabr@google.com>2019-02-25 13:18:50 -0800
commit447052e2f69efb01023dcc0dce230dd649f0475f (patch)
tree3d442d73640de9852517da0225ce49e2f035bbe0 /libs/gui/include
parent838de0622c700345fbfde270c065fdc97f4b9428 (diff)
downloadandroid_frameworks_native-447052e2f69efb01023dcc0dce230dd649f0475f.tar.gz
android_frameworks_native-447052e2f69efb01023dcc0dce230dd649f0475f.tar.bz2
android_frameworks_native-447052e2f69efb01023dcc0dce230dd649f0475f.zip
SurfaceFlinger: add DISPLAY_EVENT_CONFIG_CHANGED
Add a new event to DisplayEventReceiver for display configuration change. This event is sent by SF when display config is changed. Test: adb shell /data/nativetest64/libsurfaceflinger_unittest/libsurfaceflinger_unittest Bug: 122905403 Change-Id: Ibb7e0ce7b83b91259ccb0e9c982f5e378b0ebfaf
Diffstat (limited to 'libs/gui/include')
-rw-r--r--libs/gui/include/gui/DisplayEventReceiver.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/gui/include/gui/DisplayEventReceiver.h b/libs/gui/include/gui/DisplayEventReceiver.h
index 8c3f46305..22de75149 100644
--- a/libs/gui/include/gui/DisplayEventReceiver.h
+++ b/libs/gui/include/gui/DisplayEventReceiver.h
@@ -52,6 +52,7 @@ public:
enum {
DISPLAY_EVENT_VSYNC = fourcc('v', 's', 'y', 'n'),
DISPLAY_EVENT_HOTPLUG = fourcc('p', 'l', 'u', 'g'),
+ DISPLAY_EVENT_CONFIG_CHANGED = fourcc('c', 'o', 'n', 'f'),
};
struct Event {
@@ -70,10 +71,15 @@ public:
bool connected;
};
+ struct Config {
+ int32_t configId;
+ };
+
Header header;
union {
VSync vsync;
Hotplug hotplug;
+ Config config;
};
};