OSDN Git Service

Forward compatibility patch.
authorJeff Brown <jeffbrown@android.com>
Mon, 27 Aug 2012 23:12:46 +0000 (16:12 -0700)
committerJeff Brown <jeffbrown@android.com>
Mon, 27 Aug 2012 23:44:39 +0000 (16:44 -0700)
Change-Id: I8e8af0c6035aaac5e5097f1cfb198250475627ee

include/gui/ISurfaceComposer.h
include/gui/SurfaceComposerClient.h

index 7320e4d..09e7771 100644 (file)
@@ -96,6 +96,10 @@ public:
         eElectronBeamAnimationOff = 0x10
     };
 
+    enum {
+        eDisplayIdMain = 0
+    };
+
     /* create connection with surface flinger, requires
      * ACCESS_SURFACE_FLINGER permission
      */
index 3bd10de..295bc02 100644 (file)
@@ -112,6 +112,14 @@ public:
     static ssize_t getDisplayHeight(DisplayID dpy);
     static ssize_t getDisplayOrientation(DisplayID dpy);
 
+    static inline sp<IBinder> getBuiltInDisplay(int32_t dpy) {
+        return NULL;
+    }
+
+    static inline status_t getDisplayInfo(const sp<IBinder>& dpy, DisplayInfo* info) {
+        return getDisplayInfo(0, info);
+    }
+
     status_t linkToComposerDeath(const sp<IBinder::DeathRecipient>& recipient,
             void* cookie = NULL, uint32_t flags = 0);