[core] Get FileSource via UpdateParameters in Renderer::Impl
This commit is contained in:
@@ -37,14 +37,12 @@ static RendererObserver& nullObserver() {
|
||||
|
||||
Renderer::Impl::Impl(RendererBackend& backend_,
|
||||
float pixelRatio_,
|
||||
FileSource& fileSource_,
|
||||
Scheduler& scheduler_,
|
||||
GLContextMode contextMode_,
|
||||
const optional<std::string> programCacheDir_,
|
||||
const optional<std::string> localFontFamily_)
|
||||
: backend(backend_)
|
||||
, scheduler(scheduler_)
|
||||
, fileSource(fileSource_)
|
||||
, observer(&nullObserver())
|
||||
, contextMode(contextMode_)
|
||||
, pixelRatio(pixelRatio_)
|
||||
@@ -78,7 +76,7 @@ void Renderer::Impl::setObserver(RendererObserver* observer_) {
|
||||
|
||||
void Renderer::Impl::render(const UpdateParameters& updateParameters) {
|
||||
if (!glyphManager) {
|
||||
glyphManager = std::make_unique<GlyphManager>(fileSource, std::make_unique<LocalGlyphRasterizer>(localFontFamily));
|
||||
glyphManager = std::make_unique<GlyphManager>(updateParameters.fileSource, std::make_unique<LocalGlyphRasterizer>(localFontFamily));
|
||||
glyphManager->setObserver(this);
|
||||
}
|
||||
|
||||
@@ -118,7 +116,7 @@ void Renderer::Impl::render(const UpdateParameters& updateParameters) {
|
||||
updateParameters.debugOptions,
|
||||
updateParameters.transformState,
|
||||
scheduler,
|
||||
fileSource,
|
||||
updateParameters.fileSource,
|
||||
updateParameters.mode,
|
||||
updateParameters.annotationManager,
|
||||
*imageManager,
|
||||
|
||||
Reference in New Issue
Block a user