15 : native_window_(native_window) {
16 if (native_window_ ==
nullptr) {
19 ANativeWindow_acquire(native_window_);
23 if (native_window_ ==
nullptr) {
26 ANativeWindow_release(native_window_);
45 .window = native_window_,
59 return native_window_ !=
nullptr;
63 return native_window_ ==
nullptr
66 ANativeWindow_getHeight(native_window_));
VulkanNativeSurfaceAndroid(ANativeWindow *native_window)
VkSurfaceKHR CreateSurfaceHandle(VulkanProcTable &vk, const VulkanHandle< VkInstance > &instance) const override
const char * GetExtensionName() const override
SkISize GetSize() const override
bool IsValid() const override
~VulkanNativeSurfaceAndroid()
static constexpr SkISize Make(int32_t w, int32_t h)
#define VK_KHR_ANDROID_SURFACE_EXTENSION_NAME
@ VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR
#define VK_CALL_LOG_ERROR(expression)
struct ANativeWindow ANativeWindow