Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SkCapabilities Class Reference

#include <SkCapabilities.h>

Inheritance diagram for SkCapabilities:
SkRefCnt SkRefCntBase GrCaps GrD3DCaps GrGLCaps GrMockCaps GrMtlCaps GrVkCaps

Public Member Functions

SkSL::Version skslVersion () const
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Static Public Member Functions

static sk_sp< const SkCapabilitiesRasterBackend ()
 

Protected Member Functions

 SkCapabilities ()=default
 
void initSkCaps (const SkSL::ShaderCaps *)
 

Protected Attributes

SkSL::Version fSkSLVersion = SkSL::Version::k100
 

Detailed Description

Definition at line 21 of file SkCapabilities.h.

Constructor & Destructor Documentation

◆ SkCapabilities()

SkCapabilities::SkCapabilities ( )
protecteddefault

Member Function Documentation

◆ initSkCaps()

void SkCapabilities::initSkCaps ( const SkSL::ShaderCaps shaderCaps)
protected

Definition at line 22 of file SkCapabilities.cpp.

22 {
23 this->fSkSLVersion = shaderCaps->supportedSkSLVerion();
24}
SkSL::Version fSkSLVersion
SkSL::Version supportedSkSLVerion() const
Definition: SkSLUtil.h:72

◆ RasterBackend()

sk_sp< const SkCapabilities > SkCapabilities::RasterBackend ( )
static

Definition at line 12 of file SkCapabilities.cpp.

12 {
13 static SkCapabilities* sCaps = []() {
16 return caps;
17 }();
18
19 return sk_ref_sp(sCaps);
20}
sk_sp< T > sk_ref_sp(T *obj)
Definition: SkRefCnt.h:381
SkCapabilities()=default

◆ skslVersion()

SkSL::Version SkCapabilities::skslVersion ( ) const
inline

Definition at line 25 of file SkCapabilities.h.

25{ return fSkSLVersion; }

Member Data Documentation

◆ fSkSLVersion

SkSL::Version SkCapabilities::fSkSLVersion = SkSL::Version::k100
protected

Definition at line 36 of file SkCapabilities.h.


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