Add TaggedScheduler, couple lifetime of tasks and orchestrator (#2398)
This commit is contained in:
@@ -22,23 +22,28 @@ using namespace mbgl::style;
|
||||
|
||||
class CustomTileTest {
|
||||
public:
|
||||
util::SimpleIdentity uniqueID;
|
||||
std::shared_ptr<FileSource> fileSource = std::make_shared<FakeFileSource>();
|
||||
TransformState transformState;
|
||||
util::RunLoop loop;
|
||||
style::Style style{fileSource, 1};
|
||||
AnnotationManager annotationManager{style};
|
||||
std::shared_ptr<ImageManager> imageManager = std::make_shared<ImageManager>();
|
||||
std::shared_ptr<GlyphManager> glyphManager = std::make_shared<GlyphManager>();
|
||||
TileParameters tileParameters;
|
||||
style::Style style;
|
||||
|
||||
TileParameters tileParameters{1.0,
|
||||
MapDebugOptions(),
|
||||
transformState,
|
||||
fileSource,
|
||||
MapMode::Continuous,
|
||||
annotationManager.makeWeakPtr(),
|
||||
imageManager,
|
||||
glyphManager,
|
||||
0};
|
||||
CustomTileTest()
|
||||
: tileParameters{1.0,
|
||||
MapDebugOptions(),
|
||||
transformState,
|
||||
fileSource,
|
||||
MapMode::Continuous,
|
||||
annotationManager.makeWeakPtr(),
|
||||
imageManager,
|
||||
glyphManager,
|
||||
0,
|
||||
{Scheduler::GetBackground(), uniqueID}},
|
||||
style{fileSource, 1, tileParameters.threadPool} {}
|
||||
};
|
||||
|
||||
TEST(CustomGeometryTile, InvokeFetchTile) {
|
||||
|
||||
Reference in New Issue
Block a user