#include <playground_impl.h>
Public Types | |
| using | WindowHandle = void * |
Public Member Functions | |
| virtual | ~PlaygroundImpl () |
| virtual WindowHandle | GetWindowHandle () const =0 |
| virtual std::shared_ptr< Context > | GetContext () const =0 |
| virtual std::unique_ptr< Surface > | AcquireSurfaceFrame (std::shared_ptr< Context > context)=0 |
| Vector2 | GetContentScale () const |
Static Public Member Functions | |
| static std::unique_ptr< PlaygroundImpl > | Create (PlaygroundBackend backend, PlaygroundSwitches switches) |
Protected Member Functions | |
| PlaygroundImpl (PlaygroundSwitches switches) | |
Protected Attributes | |
| const PlaygroundSwitches | switches_ |
Definition at line 17 of file playground_impl.h.
| using impeller::PlaygroundImpl::WindowHandle = void* |
Definition at line 24 of file playground_impl.h.
|
virtualdefault |
|
explicitprotected |
Definition at line 48 of file playground_impl.cc.
|
pure virtual |
|
static |
Definition at line 24 of file playground_impl.cc.
References impeller::kMetal, impeller::kOpenGLES, impeller::kVulkan, and impeller::PlaygroundBackendToString().
Referenced by impeller::testing::MetalScreenshoter::MetalScreenshoter(), and impeller::Playground::SetupContext().
| Vector2 impeller::PlaygroundImpl::GetContentScale | ( | ) | const |
Definition at line 53 of file playground_impl.cc.
References GetWindowHandle(), impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
|
pure virtual |
|
pure virtual |
Referenced by GetContentScale().
|
protected |
Definition at line 36 of file playground_impl.h.
Referenced by impeller::PlaygroundImplVK::PlaygroundImplVK().