From 52142828eeb3e3f752e09039fd052b119718aa2f Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Mon, 27 Aug 2012 16:12:46 -0700 Subject: [PATCH] Forward compatibility patch. Change-Id: I8e8af0c6035aaac5e5097f1cfb198250475627ee --- include/gui/ISurfaceComposer.h | 4 ++++ include/gui/SurfaceComposerClient.h | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/include/gui/ISurfaceComposer.h b/include/gui/ISurfaceComposer.h index 7320e4d1f..09e777178 100644 --- a/include/gui/ISurfaceComposer.h +++ b/include/gui/ISurfaceComposer.h @@ -96,6 +96,10 @@ public: eElectronBeamAnimationOff = 0x10 }; + enum { + eDisplayIdMain = 0 + }; + /* create connection with surface flinger, requires * ACCESS_SURFACE_FLINGER permission */ diff --git a/include/gui/SurfaceComposerClient.h b/include/gui/SurfaceComposerClient.h index 3bd10de91..295bc02ff 100644 --- a/include/gui/SurfaceComposerClient.h +++ b/include/gui/SurfaceComposerClient.h @@ -112,6 +112,14 @@ public: static ssize_t getDisplayHeight(DisplayID dpy); static ssize_t getDisplayOrientation(DisplayID dpy); + static inline sp getBuiltInDisplay(int32_t dpy) { + return NULL; + } + + static inline status_t getDisplayInfo(const sp& dpy, DisplayInfo* info) { + return getDisplayInfo(0, info); + } + status_t linkToComposerDeath(const sp& recipient, void* cookie = NULL, uint32_t flags = 0);