* commit '7afa3dce092741b63932b901e93216f29e4fa634': return an error, as expected, when querying a disconnected display
This commit is contained in:
commit
a685c8f632
@ -536,6 +536,10 @@ status_t SurfaceFlinger::getDisplayInfo(const sp<IBinder>& display, DisplayInfo*
|
|||||||
}
|
}
|
||||||
|
|
||||||
const HWComposer& hwc(getHwComposer());
|
const HWComposer& hwc(getHwComposer());
|
||||||
|
if (!hwc.isConnected(type)) {
|
||||||
|
return NAME_NOT_FOUND;
|
||||||
|
}
|
||||||
|
|
||||||
float xdpi = hwc.getDpiX(type);
|
float xdpi = hwc.getDpiX(type);
|
||||||
float ydpi = hwc.getDpiY(type);
|
float ydpi = hwc.getDpiY(type);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user