#include <context.h>
Definition at line 17 of file context.h.
◆ Context() [1/2]
Definition at line 26 of file context.cc.
29 backend_data_(std::move(backend_data)) {}
◆ ~Context()
| impeller::interop::Context::~Context |
( |
| ) |
|
|
overridedefault |
◆ Context() [2/2]
| impeller::interop::Context::Context |
( |
const Context & |
| ) |
|
|
delete |
◆ CreateOpenGLES()
| ScopedObject< Context > impeller::interop::Context::CreateOpenGLES |
( |
std::function< void *(const char *gl_proc_name)> |
proc_address_callback | ) |
|
|
static |
Definition at line 65 of file context.cc.
67 #if IMPELLER_ENABLE_OPENGLES
68 auto proc_table = std::make_unique<ProcTableGLES>(
70 if (!proc_table || !proc_table->IsValid()) {
74 std::vector<std::shared_ptr<fml::Mapping>> shader_mappings = {
75 std::make_shared<fml::NonOwnedMapping>(
76 impeller_entity_shaders_gles_data,
77 impeller_entity_shaders_gles_length),
78 std::make_shared<fml::NonOwnedMapping>(
79 impeller_framebuffer_blend_shaders_gles_data,
80 impeller_framebuffer_blend_shaders_gles_length),
82 auto impeller_context =
84 if (!impeller_context) {
88 auto reactor_worker = std::make_shared<ReactorWorker>();
89 auto worker_id = impeller_context->AddReactorWorker(reactor_worker);
90 if (!worker_id.has_value()) {
95 Create<Context>(std::move(impeller_context), std::move(reactor_worker));
96 if (!context->IsValid()) {
101 #else // IMPELLER_ENABLE_OPENGLES
102 VALIDATION_LOG <<
"This build does not support OpenGL ES contexts.";
104 #endif // IMPELLER_ENABLE_OPENGLES
References impeller::ContextGLES::Create(), and VALIDATION_LOG.
Referenced by impeller::interop::ImpellerContextCreateOpenGLESNew().
◆ GetAiksContext()
| AiksContext & impeller::interop::Context::GetAiksContext |
( |
| ) |
|
◆ GetContext()
| std::shared_ptr< impeller::Context > impeller::interop::Context::GetContext |
( |
| ) |
const |
◆ IsValid()
| bool impeller::interop::Context::IsValid |
( |
| ) |
const |
◆ operator=()
The documentation for this class was generated from the following files:
static std::shared_ptr< ContextGLES > Create(std::unique_ptr< ProcTableGLES > gl, const std::vector< std::shared_ptr< fml::Mapping >> &shader_libraries, bool enable_gpu_tracing)
std::shared_ptr< Context > GetContext() const
static std::shared_ptr< TypographerContext > Make()