21 files changed, 138 insertions, 22 deletions
diff --git a/hwc2/MesonHwc2.cpp b/hwc2/MesonHwc2.cpp index 96142b3..dcc73ac 100644 --- a/hwc2/MesonHwc2.cpp +++ b/hwc2/MesonHwc2.cpp @@ -59,6 +59,9 @@ static bool m3DMode = false; static bool mKeyStoneMode = false; #endif + +ANDROID_SINGLETON_STATIC_INSTANCE(MesonHwc2) + /************************************************************ * Hal Interface ************************************************************/ @@ -776,6 +779,11 @@ void MesonHwc2::onHotplug(hwc2_display_t display, bool connected) { } } +int32_t MesonHwc2::captureDisplayScreen(buffer_handle_t hnd) { + GET_HWC_DISPLAY(0); + return hwcDisplay->captureDisplayScreen(hnd); +} + int32_t MesonHwc2::initialize() { std::map<uint32_t, std::shared_ptr<HwcDisplay>> mhwcDisps; mDisplayPipe = createDisplayPipe(HwcConfig::getPipeline()); |