#include <playground_impl_gles.h>
Definition at line 16 of file playground_impl_gles.h.
◆ PlaygroundImplGLES()
Definition at line 122 of file playground_impl_gles.cc.
124 handle_(
nullptr, &DestroyWindowHandle),
125 use_angle_(switches.use_angle) {
127 #if IMPELLER_PLAYGROUND_SUPPORTS_ANGLE
128 angle_glesv2_ = dlopen(
"libGLESv2.dylib", RTLD_LAZY);
130 FML_CHECK(angle_glesv2_ !=
nullptr);
133 std::unique_ptr<PlaygroundImplGLES::ShareableContext>& shared_context =
134 GetShareableContext();
135 if (!shared_context) {
136 shared_context = MakeShareableContext(
switches_);
137 if (!shared_context) {
138 FML_LOG(ERROR) <<
"Could not create GLES context.";
143 context_ = shared_context->context;
145 auto window = CreateGLWindow(
switches_, shared_context->window.get());
146 handle_.reset(window);
148 shared_context->context->GetGPUTracer()->Reset();
PlaygroundImpl(PlaygroundSwitches switches)
const PlaygroundSwitches switches_
References impeller::PlaygroundImpl::switches_.
◆ ~PlaygroundImplGLES()
| impeller::PlaygroundImplGLES::~PlaygroundImplGLES |
( |
| ) |
|
Definition at line 267 of file playground_impl_gles.cc.
268 if (context_ && handle_) {
269 ::glfwMakeContextCurrent(handle_.get());
270 [[maybe_unused]]
auto result = context_->FlushCommandBuffers();
◆ SetCapabilities()
| fml::Status impeller::PlaygroundImplGLES::SetCapabilities |
( |
const std::shared_ptr< Capabilities > & |
capabilities | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: