#include <dl_playground.h>
Public Types | |
| using | DisplayListPlaygroundCallback = std::function< sk_sp< flutter::DisplayList >()> |
Public Types inherited from impeller::Playground | |
| using | SinglePassCallback = std::function< bool(RenderPass &pass)> |
Public Member Functions | |
| DlPlayground () | |
| ~DlPlayground () | |
| bool | OpenPlaygroundHere (flutter::DisplayListBuilder &builder) |
| bool | OpenPlaygroundHere (sk_sp< flutter::DisplayList > list) |
| bool | OpenPlaygroundHere (DisplayListPlaygroundCallback callback) |
| SkFont | CreateTestFontOfSize (SkScalar scalar) |
| SkFont | CreateTestFont () |
Public Member Functions inherited from impeller::PlaygroundTest | |
| PlaygroundTest () | |
| virtual | ~PlaygroundTest () |
| void | SetUp () override |
| void | TearDown () override |
| PlaygroundBackend | GetBackend () const |
| std::unique_ptr< fml::Mapping > | OpenAssetAsMapping (std::string asset_name) const override |
| std::shared_ptr< RuntimeStage > | OpenAssetAsRuntimeStage (const char *asset_name) const |
| std::string | GetWindowTitle () const override |
Public Member Functions inherited from impeller::Playground | |
| Playground (PlaygroundSwitches switches) | |
| virtual | ~Playground () |
| void | SetupContext (PlaygroundBackend backend) |
| void | SetupWindow () |
| void | TeardownWindow () |
| Point | GetCursorPosition () const |
| ISize | GetWindowSize () const |
| Point | GetContentScale () const |
| Scalar | GetSecondsElapsed () const |
| Get the amount of time elapsed from the start of the playground's execution. More... | |
| std::shared_ptr< Context > | GetContext () const |
| bool | OpenPlaygroundHere (const Renderer::RenderCallback &render_callback) |
| bool | OpenPlaygroundHere (SinglePassCallback pass_callback) |
| std::shared_ptr< Texture > | CreateTextureForFixture (const char *fixture_name, bool enable_mipmapping=false) const |
| std::shared_ptr< Texture > | CreateTextureCubeForFixture (std::array< const char *, 6 > fixture_names) const |
Additional Inherited Members | |
Static Public Member Functions inherited from impeller::Playground | |
| static bool | ShouldOpenNewPlaygrounds () |
| static std::shared_ptr< CompressedImage > | LoadFixtureImageCompressed (std::shared_ptr< fml::Mapping > mapping) |
| static std::optional< DecompressedImage > | DecodeImageRGBA (const std::shared_ptr< CompressedImage > &compressed) |
| static std::shared_ptr< Texture > | CreateTextureForMapping (const std::shared_ptr< Context > &context, std::shared_ptr< fml::Mapping > mapping, bool enable_mipmapping=false) |
| static bool | SupportsBackend (PlaygroundBackend backend) |
Protected Attributes inherited from impeller::Playground | |
| const PlaygroundSwitches | switches_ |
Definition at line 15 of file dl_playground.h.
| using impeller::DlPlayground::DisplayListPlaygroundCallback = std::function<sk_sp<flutter::DisplayList>()> |
Definition at line 18 of file dl_playground.h.
|
default |
|
default |
| SkFont impeller::DlPlayground::CreateTestFont | ( | ) |
Definition at line 77 of file dl_playground.cc.
References CreateTestFontOfSize().
| SkFont impeller::DlPlayground::CreateTestFontOfSize | ( | SkScalar | scalar | ) |
Definition at line 70 of file dl_playground.cc.
References impeller::OpenFixtureAsSkData().
Referenced by CreateTestFont().
| bool impeller::DlPlayground::OpenPlaygroundHere | ( | DisplayListPlaygroundCallback | callback | ) |
Definition at line 28 of file dl_playground.cc.
References impeller::PlaygroundSwitches::enable_playground, impeller::DlDispatcher::EndRecordingAsPicture(), impeller::AiksContext::GetContentContext(), impeller::Playground::GetContext(), impeller::AiksContext::IsValid(), impeller::TypographerContextSkia::Make(), impeller::Playground::OpenPlaygroundHere(), impeller::AiksContext::Render(), and impeller::Playground::switches_.
| bool impeller::DlPlayground::OpenPlaygroundHere | ( | flutter::DisplayListBuilder & | builder | ) |
Definition at line 20 of file dl_playground.cc.
Referenced by OpenPlaygroundHere().
| bool impeller::DlPlayground::OpenPlaygroundHere | ( | sk_sp< flutter::DisplayList > | list | ) |
Definition at line 24 of file dl_playground.cc.
References OpenPlaygroundHere().