Add TaggedScheduler, couple lifetime of tasks and orchestrator (#2398)
This commit is contained in:
@@ -16,24 +16,29 @@ using namespace mbgl;
|
||||
|
||||
class RasterTileTest {
|
||||
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>();
|
||||
Tileset tileset{{"https://example.com"}, {0, 22}, "none"};
|
||||
TileParameters tileParameters;
|
||||
style::Style style;
|
||||
|
||||
TileParameters tileParameters{1.0,
|
||||
MapDebugOptions(),
|
||||
transformState,
|
||||
fileSource,
|
||||
MapMode::Continuous,
|
||||
annotationManager.makeWeakPtr(),
|
||||
imageManager,
|
||||
glyphManager,
|
||||
0};
|
||||
RasterTileTest()
|
||||
: tileParameters{1.0,
|
||||
MapDebugOptions(),
|
||||
transformState,
|
||||
fileSource,
|
||||
MapMode::Continuous,
|
||||
annotationManager.makeWeakPtr(),
|
||||
imageManager,
|
||||
glyphManager,
|
||||
0,
|
||||
{Scheduler::GetBackground(), uniqueID}},
|
||||
style{fileSource, 1, tileParameters.threadPool} {}
|
||||
};
|
||||
|
||||
TEST(RasterTile, setError) {
|
||||
|
||||
Reference in New Issue
Block a user