Skia
2D Graphics Library
GrBackendSurfaceMutableState Class Reference

Since Skia and clients can both modify gpu textures and their connected state, Skia needs a way for clients to inform us if they have modifiend any of this state. More...

#include <GrBackendSurfaceMutableState.h>

Public Member Functions

 GrBackendSurfaceMutableState ()
 
 GrBackendSurfaceMutableState (const GrBackendSurfaceMutableState &that)
 
GrBackendSurfaceMutableStateoperator= (const GrBackendSurfaceMutableState &that)
 
bool isValid () const
 
GrBackendApi backend () const
 

Friends

class GrBackendSurfaceMutableStateImpl
 
class GrVkGpu
 

Detailed Description

Since Skia and clients can both modify gpu textures and their connected state, Skia needs a way for clients to inform us if they have modifiend any of this state.

In order to not need setters for every single API and state, we use this class to be a generic wrapper around all the mutable state. This class is used for calls that inform Skia of these texture/image state changes by the client as well as for requesting state changes to be done by Skia. The backend specific state that is wrapped by this class are:

Vulkan: VkImageLayout and QueueFamilyIndex

Constructor & Destructor Documentation

◆ GrBackendSurfaceMutableState() [1/2]

GrBackendSurfaceMutableState::GrBackendSurfaceMutableState ( )
inline

◆ GrBackendSurfaceMutableState() [2/2]

GrBackendSurfaceMutableState::GrBackendSurfaceMutableState ( const GrBackendSurfaceMutableState that)

Member Function Documentation

◆ backend()

GrBackendApi GrBackendSurfaceMutableState::backend ( ) const
inline

◆ isValid()

bool GrBackendSurfaceMutableState::isValid ( ) const
inline

◆ operator=()

GrBackendSurfaceMutableState& GrBackendSurfaceMutableState::operator= ( const GrBackendSurfaceMutableState that)

Friends And Related Function Documentation

◆ GrBackendSurfaceMutableStateImpl

friend class GrBackendSurfaceMutableStateImpl
friend

◆ GrVkGpu

friend class GrVkGpu
friend

Member Data Documentation

◆ fDummy

char GrBackendSurfaceMutableState::fDummy

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