Compatibility work around for bad graphics driver dependency.
This is a compatibility shim for one product whose drivers are depending on SurfaceComposerClient::getDisplayInfo( int, DisplayInfo*) when it really shouldn't. Revert this patch when the problem has been resolved. Bug: 7065398 Change-Id: I6542691b81fd1b1e1d79500a62e82d40a3d51db7
This commit is contained in:
parent
1ae49e3fef
commit
a50b51c03a
@ -67,6 +67,11 @@ public:
|
|||||||
// Get information about a display
|
// Get information about a display
|
||||||
static status_t getDisplayInfo(const sp<IBinder>& display, DisplayInfo* info);
|
static status_t getDisplayInfo(const sp<IBinder>& display, DisplayInfo* info);
|
||||||
|
|
||||||
|
// TODO: Remove me. Do not use.
|
||||||
|
// This is a compatibility shim for one product whose drivers are depending on
|
||||||
|
// this legacy function (when they shouldn't).
|
||||||
|
static status_t getDisplayInfo(int32_t displayId, DisplayInfo* info);
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
// surface creation / destruction
|
// surface creation / destruction
|
||||||
|
|
||||||
|
@ -543,6 +543,15 @@ status_t SurfaceComposerClient::getDisplayInfo(
|
|||||||
return ComposerService::getComposerService()->getDisplayInfo(display, info);
|
return ComposerService::getComposerService()->getDisplayInfo(display, info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Remove me. Do not use.
|
||||||
|
// This is a compatibility shim for one product whose drivers are depending on
|
||||||
|
// this legacy function (when they shouldn't).
|
||||||
|
status_t SurfaceComposerClient::getDisplayInfo(
|
||||||
|
int32_t displayId, DisplayInfo* info)
|
||||||
|
{
|
||||||
|
return getDisplayInfo(getBuiltInDisplay(displayId), info);
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
ScreenshotClient::ScreenshotClient()
|
ScreenshotClient::ScreenshotClient()
|
||||||
|
Loading…
Reference in New Issue
Block a user