Skia
2D Graphics Library
SkCapabilities Class Reference

#include <SkCapabilities.h>

Inheritance diagram for SkCapabilities:

Public Member Functions

SkSL::Version skslVersion () const
 
bool unique () const
 May return true if the caller is the only owner. More...
 
void ref () const
 Increment the reference count. More...
 
void unref () const
 Decrement the reference count. More...
 

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
 

Constructor & Destructor Documentation

◆ SkCapabilities()

SkCapabilities::SkCapabilities ( )
protecteddefault

Member Function Documentation

◆ initSkCaps()

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

◆ RasterBackend()

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

◆ ref()

void SkRefCntBase::ref ( ) const
inlineinherited

Increment the reference count.

Must be balanced by a call to unref().

◆ skslVersion()

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

◆ unique()

bool SkRefCntBase::unique ( ) const
inlineinherited

May return true if the caller is the only owner.

Ensures that all previous owner's actions are complete.

◆ unref()

void SkRefCntBase::unref ( ) const
inlineinherited

Decrement the reference count.

If the reference count is 1 before the decrement, then delete the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.

Member Data Documentation

◆ fSkSLVersion

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

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