#include <playground_impl_mtl.h>
Definition at line 20 of file playground_impl_mtl.h.
◆ PlaygroundImplMTL()
Definition at line 63 of file playground_impl_mtl.mm.
65 handle_(
nullptr, &DestroyWindowHandle),
66 data_(std::make_unique<Data>()),
67 concurrent_loop_(fml::ConcurrentMessageLoop::Create()),
68 is_gpu_disabled_sync_switch_(
new fml::SyncSwitch(
false)) {
69 ::glfwDefaultWindowHints();
70 ::glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
71 ::glfwWindowHint(GLFW_VISIBLE, GLFW_FALSE);
72 auto window = ::glfwCreateWindow(1, 1,
"Test",
nullptr,
nullptr);
78 is_gpu_disabled_sync_switch_,
"Playground Library");
82 NSWindow* cocoa_window = ::glfwGetCocoaWindow(window);
83 if (cocoa_window == nil) {
86 data_->metal_layer = [CAMetalLayer layer];
88 data_->metal_layer.pixelFormat =
90 data_->metal_layer.framebufferOnly = NO;
91 cocoa_window.contentView.layer = data_->metal_layer;
92 cocoa_window.contentView.wantsLayer = YES;
94 handle_.reset(window);
95 context_ = std::move(context);
◆ ~PlaygroundImplMTL()
impeller::PlaygroundImplMTL::~PlaygroundImplMTL |
( |
| ) |
|
|
default |
◆ SetCapabilities()
fml::Status impeller::PlaygroundImplMTL::SetCapabilities |
( |
const std::shared_ptr< Capabilities > & |
capabilities | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: