14 const char* debug_name) {
15 return std::unique_ptr<SurfaceControl>(
20 auto api_level = android_get_device_api_level();
28 GetProcTable().ASurfaceControl_createFromWindow.IsAvailable();
static std::unique_ptr< SurfaceControl > Create(ANativeWindow *window, const char *debug_name=nullptr)
Creates a new surface control and adds it as a child of the given window.
static bool IsAvailableOnPlatform()
const ProcTable & GetProcTable()
bool IsValid() const
If a valid proc table could be setup. This may fail in case of setup on non-Android platforms.