7#include "third_party/glfw/include/GLFW/glfw3.h"
12std::unique_ptr<DlSurfaceProvider> DlSurfaceProvider::CreateImpellerMetal() {
13 return std::make_unique<DlSurfaceProviderImpellerMetal>();
16std::unique_ptr<DlSurfaceProvider> DlSurfaceProvider::CreateImpellerMetalSDF() {
17 return std::make_unique<DlSurfaceProviderImpellerMetalSDF>();
23std::unique_ptr<impeller::PlaygroundImpl>
24 DlSurfaceProviderImpellerMetal::playground_;
29std::unique_ptr<impeller::PlaygroundImpl>
30 DlSurfaceProviderImpellerMetalSDF::playground_;
34 if (playground_ ==
nullptr) {
41 return playground_.get();
46 if (playground_ ==
nullptr) {
54 return playground_.get();
58 return "ImpellerMetal";
63 return BackendType::kImpellerMetal;
67 return "ImpellerMetalSDF";
72 return BackendType::kImpellerMetalSDF;
static std::unique_ptr< impeller::PlaygroundImpl > MakePlayground(impeller::PlaygroundBackend backend, const impeller::PlaygroundSwitches &switches)
#define FML_CHECK(condition)
bool use_sdfs
Use SDFs for rendering.