Also, add an Emplace() method to DmTable to make target construction
easier. For example,
table.AddTarget(std::make_unique<DmTargetLinear>(...));
Becomes:
table.Emplace<DmTargetLinear>(...);
Bug: 132206403
Test: libdm_test gtest
Change-Id: Iac62c74546ebaa660cb32d6894a019bdac24a305
|
||
|---|---|---|
| .. | ||
| include/libdm | ||
| Android.bp | ||
| Android.mk | ||
| AndroidTest.xml | ||
| dm.cpp | ||
| dm_table.cpp | ||
| dm_target.cpp | ||
| dm_test.cpp | ||
| loop_control.cpp | ||
| loop_control_test.cpp | ||
| test_util.cpp | ||
| test_util.h | ||