commit | 15f7cf31bf928543b6505aae6156cf6f008c29a8 | [log] [tgz] |
---|---|---|
author | Ana Krulec <akrulec@google.com> | Tue May 12 11:57:42 2020 -0700 |
committer | Ana Krulec <akrulec@google.com> | Tue May 12 17:00:57 2020 -0700 |
tree | 6452efc9122f1d4677a5e577f70d4095239e5f3b | |
parent | 9bc9dc6953628b3a8e48a08e3156c7710f279920 [diff] |
RenderEngineThreaded takes a function as an argument to create In order to simplify testing and implementation of threaded RE, RenderEngineThreaded::create can takes a std::function argument to call to create the RE instance. RenderEngineThreaded::threadMain then call the function. - RenderEngine::create() uses it to create the production instance. - The test uses it to create the mock instance. Test: Unit tests Change-Id: Ic1af134979d4449c34d9ad86d07673367eb16896