Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
vulkan::VulkanWindow Class Reference

#include <vulkan_window.h>

Public Member Functions

 VulkanWindow (fml::RefPtr< VulkanProcTable > proc_table, std::unique_ptr< VulkanNativeSurface > native_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)
 Construct a VulkanWindow. Let reuse an existing GrDirectContext built by another VulkanWindow. More...
 
 ~VulkanWindow ()
 
bool IsValid () const
 
GrDirectContextGetSkiaGrContext ()
 
sk_sp< SkSurfaceAcquireSurface ()
 
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 
)

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 
)

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: