Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GrBackendDrawableInfo Class Reference

#include <GrBackendDrawableInfo.h>

Public Member Functions

 GrBackendDrawableInfo ()
 
 GrBackendDrawableInfo (const GrVkDrawableInfo &info)
 
bool isValid () const
 
GrBackendApi backend () const
 
bool getVkDrawableInfo (GrVkDrawableInfo *outInfo) const
 

Detailed Description

Definition at line 17 of file GrBackendDrawableInfo.h.

Constructor & Destructor Documentation

◆ GrBackendDrawableInfo() [1/2]

GrBackendDrawableInfo::GrBackendDrawableInfo ( )
inline

Definition at line 20 of file GrBackendDrawableInfo.h.

20: fIsValid(false) {}

◆ GrBackendDrawableInfo() [2/2]

GrBackendDrawableInfo::GrBackendDrawableInfo ( const GrVkDrawableInfo info)
inline

Definition at line 22 of file GrBackendDrawableInfo.h.

23 : fIsValid(true)
24 , fBackend(GrBackendApi::kVulkan)
25 , fVkInfo(info) {}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213

Member Function Documentation

◆ backend()

GrBackendApi GrBackendDrawableInfo::backend ( ) const
inline

Definition at line 30 of file GrBackendDrawableInfo.h.

30{ return fBackend; }

◆ getVkDrawableInfo()

bool GrBackendDrawableInfo::getVkDrawableInfo ( GrVkDrawableInfo outInfo) const
inline

Definition at line 32 of file GrBackendDrawableInfo.h.

32 {
33 if (this->isValid() && GrBackendApi::kVulkan == fBackend) {
34 *outInfo = fVkInfo;
35 return true;
36 }
37 return false;
38 }

◆ isValid()

bool GrBackendDrawableInfo::isValid ( ) const
inline

Definition at line 28 of file GrBackendDrawableInfo.h.

28{ return fIsValid; }

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