15 {
16 auto proc_table = std::make_unique<ProcTableGLES>(
18 if (!proc_table || !proc_table->IsValid()) {
20 return {};
21 }
22 std::vector<std::shared_ptr<fml::Mapping>> shader_mappings = {
23 std::make_shared<fml::NonOwnedMapping>(
24 impeller_entity_shaders_gles_data,
25 impeller_entity_shaders_gles_length),
26 std::make_shared<fml::NonOwnedMapping>(
27 impeller_framebuffer_blend_shaders_gles_data,
28 impeller_framebuffer_blend_shaders_gles_length),
29 };
31 Flags{}, std::move(proc_table), shader_mappings, false);
32 if (!impeller_context) {
34 return {};
35 }
36 auto reactor_worker = std::make_shared<ReactorWorkerGLES>();
37 auto worker_id = impeller_context->AddReactorWorker(reactor_worker);
38 if (!worker_id.has_value()) {
40 return {};
41 }
42 return Create(std::move(impeller_context), std::move(reactor_worker));
43}
static std::shared_ptr< ContextGLES > Create(const Flags &flags, std::unique_ptr< ProcTableGLES > gl, const std::vector< std::shared_ptr< fml::Mapping > > &shader_libraries, bool enable_gpu_tracing, std::shared_ptr< fml::BasicTaskRunner > io_task_runner=nullptr)
static ScopedObject< Context > Create(std::function< void *(const char *gl_proc_name)> proc_address_callback)