Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GrVkBackendTextureData Class Referencefinal
Inheritance diagram for GrVkBackendTextureData:
GrBackendTextureData

Public Member Functions

 GrVkBackendTextureData (const GrVkImageInfo &info, sk_sp< skgpu::MutableTextureState > mutableState=nullptr)
 
const GrVkImageInfoinfo () const
 
sk_sp< skgpu::MutableTextureStategetMutableState () const override
 
void setMutableState (const skgpu::MutableTextureState &state) override
 
skgpu::MutableTextureStatemutableState ()
 
const skgpu::MutableTextureStatemutableState () const
 
- Public Member Functions inherited from GrBackendTextureData
virtual ~GrBackendTextureData ()
 

Additional Inherited Members

- Protected Types inherited from GrBackendTextureData
using AnyTextureData = GrBackendTexture::AnyTextureData
 
- Protected Member Functions inherited from GrBackendTextureData
 GrBackendTextureData ()=default
 
 GrBackendTextureData (const GrBackendTextureData &)=default
 

Detailed Description

Definition at line 161 of file GrVkBackendSurface.cpp.

Constructor & Destructor Documentation

◆ GrVkBackendTextureData()

GrVkBackendTextureData::GrVkBackendTextureData ( const GrVkImageInfo info,
sk_sp< skgpu::MutableTextureState mutableState = nullptr 
)
inline

Definition at line 163 of file GrVkBackendSurface.cpp.

165 : fVkInfo(info) {
166 if (mutableState) {
167 fMutableState = std::move(mutableState);
168 } else {
169 fMutableState =
170 sk_make_sp<skgpu::MutableTextureState>(skgpu::MutableTextureStates::MakeVulkan(
172 }
173 }
const GrVkImageInfo & info() const
skgpu::MutableTextureState * mutableState()
SK_API MutableTextureState MakeVulkan(VkImageLayout layout, uint32_t queueFamilyIndex)
uint32_t fCurrentQueueFamily
Definition: GrVkTypes.h:34
VkImageLayout fImageLayout
Definition: GrVkTypes.h:29

Member Function Documentation

◆ getMutableState()

sk_sp< skgpu::MutableTextureState > GrVkBackendTextureData::getMutableState ( ) const
inlineoverridevirtual

Reimplemented from GrBackendTextureData.

Definition at line 177 of file GrVkBackendSurface.cpp.

177 {
178 return fMutableState;
179 }

◆ info()

const GrVkImageInfo & GrVkBackendTextureData::info ( ) const
inline

Definition at line 175 of file GrVkBackendSurface.cpp.

175{ return fVkInfo; }

◆ mutableState() [1/2]

skgpu::MutableTextureState * GrVkBackendTextureData::mutableState ( )
inline

Definition at line 184 of file GrVkBackendSurface.cpp.

184{ return fMutableState.get(); }
T * get() const
Definition: SkRefCnt.h:303

◆ mutableState() [2/2]

const skgpu::MutableTextureState * GrVkBackendTextureData::mutableState ( ) const
inline

Definition at line 185 of file GrVkBackendSurface.cpp.

185{ return fMutableState.get(); }

◆ setMutableState()

void GrVkBackendTextureData::setMutableState ( const skgpu::MutableTextureState state)
inlineoverridevirtual

Reimplemented from GrBackendTextureData.

Definition at line 180 of file GrVkBackendSurface.cpp.

180 {
181 fMutableState->set(state);
182 }
void set(const MutableTextureState &that)
AtkStateType state

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