Loading services/surfaceflinger/DisplayHardware/HWComposer.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -322,10 +322,13 @@ void HWComposer::destroyLayer(HalDisplayId displayId, HWC2::Layer* layer) { } bool HWComposer::isConnected(PhysicalDisplayId displayId) const { RETURN_IF_INVALID_DISPLAY(displayId, false); if (mDisplayData.count(displayId)) { return mDisplayData.at(displayId).hwcDisplay->isConnected(); } return false; } std::vector<HWComposer::HWCDisplayMode> HWComposer::getModes(PhysicalDisplayId displayId) const { RETURN_IF_INVALID_DISPLAY(displayId, {}); Loading Loading
services/surfaceflinger/DisplayHardware/HWComposer.cpp +5 −2 Original line number Diff line number Diff line Loading @@ -322,10 +322,13 @@ void HWComposer::destroyLayer(HalDisplayId displayId, HWC2::Layer* layer) { } bool HWComposer::isConnected(PhysicalDisplayId displayId) const { RETURN_IF_INVALID_DISPLAY(displayId, false); if (mDisplayData.count(displayId)) { return mDisplayData.at(displayId).hwcDisplay->isConnected(); } return false; } std::vector<HWComposer::HWCDisplayMode> HWComposer::getModes(PhysicalDisplayId displayId) const { RETURN_IF_INVALID_DISPLAY(displayId, {}); Loading