14 std::shared_ptr<Context> context,
15 std::shared_ptr<TypographerContext> typographer_context,
16 std::optional<std::shared_ptr<RenderTargetAllocator>>
17 render_target_allocator)
18 : context_(
std::move(context)) {
19 if (!context_ || !context_->IsValid()) {
23 content_context_ = std::make_unique<ContentContext>(
24 context_, std::move(typographer_context),
25 render_target_allocator.has_value() ? render_target_allocator.value()
27 if (!content_context_->IsValid()) {
ContentContext & GetContentContext() const
AiksContext(std::shared_ptr< Context > context, std::shared_ptr< TypographerContext > typographer_context, std::optional< std::shared_ptr< RenderTargetAllocator > > render_target_allocator=std::nullopt)
bool Render(const Picture &picture, RenderTarget &render_target, bool reset_host_buffer)
std::shared_ptr< Context > GetContext() const