From: Anusha Gugale Date: Thu, 21 Jan 2021 03:38:43 +0000 (+0530) Subject: Use parameterized constructor of RBAArbitrator X-Git-Tag: 10.93.0^0 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=47386558dbc95387f9062651774d9b2e1bb8bc6b;p=src%2Fagl-compositor.git Use parameterized constructor of RBAArbitrator - To hide unnecessary internal interfaces from user, reconstructed public files of librba. At this time, default constructor has been removed. Bug-AGL: SPEC-3738 Signed-off-by: Anusha Gugale Change-Id: I957796861081c79df9018cac92bd06927952924d --- diff --git a/src/rba_adapter.cpp b/src/rba_adapter.cpp index 120d032..0583f92 100644 --- a/src/rba_adapter.cpp +++ b/src/rba_adapter.cpp @@ -52,12 +52,11 @@ bool rba_adapter_initialize(void) weston_log("RBAmodel is NULL\n"); return false; } - arb = new rba::RBAArbitrator(); + arb = new rba::RBAArbitrator(model); if (arb == nullptr) { weston_log("RBAArbitrator is NULL\n"); return false; } - arb->setModel(model); return true; } weston_log("RBAArbitrator model is already created\n");