Merge "Forward compatibility patch."

This commit is contained in:
Jeff Brown 2012-08-27 17:26:05 -07:00 committed by android code review
commit d7007cd4bb
2 changed files with 12 additions and 0 deletions

View File

@ -96,6 +96,10 @@ public:
eElectronBeamAnimationOff = 0x10
};
enum {
eDisplayIdMain = 0
};
/* create connection with surface flinger, requires
* ACCESS_SURFACE_FLINGER permission
*/

View 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);