Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
GrVkBackendRenderTargetData Class Referencefinal
Inheritance diagram for GrVkBackendRenderTargetData:
GrBackendRenderTargetData

Public Member Functions

 GrVkBackendRenderTargetData (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 GrBackendRenderTargetData
virtual ~GrBackendRenderTargetData ()
 

Additional Inherited Members

- Protected Types inherited from GrBackendRenderTargetData
using AnyRenderTargetData = GrBackendRenderTarget::AnyRenderTargetData
 
- Protected Member Functions inherited from GrBackendRenderTargetData
 GrBackendRenderTargetData ()=default
 
 GrBackendRenderTargetData (const GrBackendRenderTargetData &)=default
 

Detailed Description

Definition at line 328 of file GrVkBackendSurface.cpp.

Constructor & Destructor Documentation

◆ GrVkBackendRenderTargetData()

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

Definition at line 330 of file GrVkBackendSurface.cpp.

332 : fVkInfo(info) {
333 if (mutableState) {
334 fMutableState = std::move(mutableState);
335 } else {
336 fMutableState =
337 sk_make_sp<skgpu::MutableTextureState>(skgpu::MutableTextureStates::MakeVulkan(
339 }
340 }
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 > GrVkBackendRenderTargetData::getMutableState ( ) const
inlineoverridevirtual

Reimplemented from GrBackendRenderTargetData.

Definition at line 344 of file GrVkBackendSurface.cpp.

344 {
345 return fMutableState;
346 }

◆ info()

const GrVkImageInfo & GrVkBackendRenderTargetData::info ( ) const
inline

Definition at line 342 of file GrVkBackendSurface.cpp.

342{ return fVkInfo; }

◆ mutableState() [1/2]

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

Definition at line 351 of file GrVkBackendSurface.cpp.

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

◆ mutableState() [2/2]

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

Definition at line 352 of file GrVkBackendSurface.cpp.

352{ return fMutableState.get(); }

◆ setMutableState()

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

Reimplemented from GrBackendRenderTargetData.

Definition at line 347 of file GrVkBackendSurface.cpp.

347 {
348 fMutableState->set(state);
349 }
void set(const MutableTextureState &that)
AtkStateType state

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