#include <playground_impl.h>
Definition at line 17 of file playground_impl.h.
◆ WindowHandle
◆ ~PlaygroundImpl()
impeller::PlaygroundImpl::~PlaygroundImpl |
( |
| ) |
|
|
virtualdefault |
◆ PlaygroundImpl()
◆ AcquireSurfaceFrame()
virtual std::unique_ptr< Surface > impeller::PlaygroundImpl::AcquireSurfaceFrame |
( |
std::shared_ptr< Context > |
context | ) |
|
|
pure virtual |
◆ Create()
Definition at line 25 of file playground_impl.cc.
27 {
29#if IMPELLER_ENABLE_METAL
31 return std::make_unique<PlaygroundImplMTL>(switches);
32#endif
33#if IMPELLER_ENABLE_OPENGLES
35 return std::make_unique<PlaygroundImplGLES>(switches);
36#endif
37#if IMPELLER_ENABLE_VULKAN
40 FML_CHECK(
false) <<
"Attempted to create playground with backend that "
41 "isn't available or was disabled on this platform: "
43 }
44 switches.enable_vulkan_validation = true;
45 return std::make_unique<PlaygroundImplVK>(switches);
46#endif
47 default:
48 FML_CHECK(
false) <<
"Attempted to create playground with backend that "
49 "isn't available or was disabled on this platform: "
51 }
53}
static bool IsVulkanDriverPresent()
#define FML_CHECK(condition)
#define FML_UNREACHABLE()
std::string PlaygroundBackendToString(PlaygroundBackend backend)
◆ GetContentScale()
Vector2 impeller::PlaygroundImpl::GetContentScale |
( |
| ) |
const |
Definition at line 60 of file playground_impl.cc.
60 {
62
65
67}
virtual WindowHandle GetWindowHandle() const =0
◆ GetContext()
virtual std::shared_ptr< Context > impeller::PlaygroundImpl::GetContext |
( |
| ) |
const |
|
pure virtual |
◆ GetWindowHandle()
virtual WindowHandle impeller::PlaygroundImpl::GetWindowHandle |
( |
| ) |
const |
|
pure virtual |
◆ SetCapabilities()
virtual fml::Status impeller::PlaygroundImpl::SetCapabilities |
( |
const std::shared_ptr< Capabilities > & |
capabilities | ) |
|
|
pure virtual |
◆ switches_
The documentation for this class was generated from the following files: