summaryrefslogtreecommitdiff
Diffstat
-rw-r--r--common/display/include/HwDisplayConnector.h8
-rw-r--r--common/hwc/ActiveModeMgr.cpp (renamed from hwc2/ActiveModeMgr.cpp)0
-rw-r--r--common/hwc/Android.mk5
-rw-r--r--common/hwc/FixedSizeModeMgr.cpp (renamed from hwc2/FixedSizeModeMgr.cpp)0
-rw-r--r--common/hwc/HwcModeMgr.cpp (renamed from hwc2/HwcModeMgr.cpp)0
-rw-r--r--common/hwc/RealModeMgr.cpp (renamed from hwc2/RealModeMgr.cpp)0
-rw-r--r--common/hwc/VariableModeMgr.cpp (renamed from hwc2/VariableModeMgr.cpp)0
-rw-r--r--common/hwc/include/ActiveModeMgr.h (renamed from hwc2/ActiveModeMgr.h)0
-rw-r--r--common/hwc/include/FixedSizeModeMgr.h (renamed from hwc2/FixedSizeModeMgr.h)0
-rw-r--r--common/hwc/include/RealModeMgr.h (renamed from hwc2/RealModeMgr.h)0
-rw-r--r--common/hwc/include/VariableModeMgr.h (renamed from hwc2/VariableModeMgr.h)0
-rw-r--r--hwc2/Android.mk62
-rwxr-xr-xhwc2/Hwc2Display.cpp18
-rw-r--r--hwc2/Hwc2Display.h4
-rw-r--r--hwc2/Hwc2Module.cpp9
-rw-r--r--hwc2/MesonHwc2.cpp8
-rw-r--r--hwc2/MesonHwc2.h9
-rw-r--r--postprocessor/Android.mk3
-rw-r--r--postprocessor/fbprocessor/CopyProcessor.cpp16
-rw-r--r--service/2.3/default/android.hardware.graphics.composer@2.3-service.droidlogic.xml9
-rw-r--r--service/2.4/default/android.hardware.graphics.composer@2.4-service.droidlogic.xml9
21 files changed, 138 insertions, 22 deletions
diff --git a/hwc2/Hwc2Module.cpp b/hwc2/Hwc2Module.cpp
index 366ebbd..ce7dd92 100644
--- a/hwc2/Hwc2Module.cpp
+++ b/hwc2/Hwc2Module.cpp
@@ -14,6 +14,8 @@
#include <MesonLog.h>
#include "MesonHwc2.h"
+#include "DisplayAdapterLocal.h"
+#include "DisplayService.h"
typedef struct hwc2_impl {
hwc2_device_t base;
@@ -529,7 +531,7 @@ static int hwc2_device_open(
/*init hwc device. */
hwc2_impl_t * hwc = (hwc2_impl_t*)calloc(1, sizeof(hwc2_impl_t));
- hwc->impl = new MesonHwc2();
+ hwc->impl = &(MesonHwc2::getInstance());
hwc->base.common.module = const_cast<hw_module_t*>(module);
hwc->base.common.version = HWC_DEVICE_API_VERSION_2_0;
@@ -538,6 +540,11 @@ static int hwc2_device_open(
hwc->base.getFunction = hwc2_getFunction;
*device = reinterpret_cast<hw_device_t*>(hwc);
+ static meson::DisplayServer* server;
+ std::unique_ptr<meson::DisplayAdapter> adapter =
+ meson::DisplayAdapterLocal::create(meson::DisplayAdapter::BackendType::DISPLAY_TYPE_FBDEV);
+ server = new meson::DisplayServer(adapter);
+ UNUSED(server);
return 0;
}