Flutter Engine
vulkan::VulkanWindow Class Reference

#include <vulkan_window.h>

Public Member Functions

 VulkanWindow (fml::RefPtr< VulkanProcTable > proc_table, std::unique_ptr< VulkanNativeSurface > native_surface, bool render_to_surface)
 Construct a VulkanWindow. Let it implicitly create a GrDirectContext. More...
 
 VulkanWindow (const sk_sp< GrDirectContext > &context, fml::RefPtr< VulkanProcTable > proc_table, std::unique_ptr< VulkanNativeSurface > native_surface, bool render_to_surface)
 Construct a VulkanWindow. Let reuse an existing GrDirectContext built by another VulkanWindow. More...
 
 ~VulkanWindow ()
 
bool IsValid () const
 
GrDirectContext * GetSkiaGrContext ()
 
sk_sp< SkSurface > AcquireSurface ()
 
bool SwapBuffers ()
 

Detailed Description

Definition at line 32 of file vulkan_window.h.

Constructor & Destructor Documentation

◆ VulkanWindow() [1/2]

vulkan::VulkanWindow::VulkanWindow ( fml::RefPtr< VulkanProcTable proc_table,
std::unique_ptr< VulkanNativeSurface native_surface,
bool  render_to_surface 
)

Construct a VulkanWindow. Let it implicitly create a GrDirectContext.

◆ VulkanWindow() [2/2]

vulkan::VulkanWindow::VulkanWindow ( const sk_sp< GrDirectContext > &  context,
fml::RefPtr< VulkanProcTable proc_table,
std::unique_ptr< VulkanNativeSurface native_surface,
bool  render_to_surface 
)

Construct a VulkanWindow. Let reuse an existing GrDirectContext built by another VulkanWindow.

◆ ~VulkanWindow()

vulkan::VulkanWindow::~VulkanWindow ( )

Member Function Documentation

◆ AcquireSurface()

sk_sp<SkSurface> vulkan::VulkanWindow::AcquireSurface ( )

◆ GetSkiaGrContext()

GrDirectContext* vulkan::VulkanWindow::GetSkiaGrContext ( )

◆ IsValid()

bool vulkan::VulkanWindow::IsValid ( ) const

◆ SwapBuffers()

bool vulkan::VulkanWindow::SwapBuffers ( )

The documentation for this class was generated from the following file: