Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
skgpu::graphite::ImageShaderBlock::ImageData Struct Reference

#include <KeyHelpers.h>

Public Member Functions

 ImageData (const SkSamplingOptions &sampling, SkTileMode tileModeX, SkTileMode tileModeY, SkISize imgSize, SkRect subset, ReadSwizzle readSwizzle)
 

Public Attributes

SkSamplingOptions fSampling
 
SkTileMode fTileModes [2]
 
SkISize fImgSize
 
SkRect fSubset
 
ReadSwizzle fReadSwizzle
 
SkColorSpaceXformSteps fSteps
 
sk_sp< TextureProxyfTextureProxy
 

Detailed Description

Definition at line 166 of file KeyHelpers.h.

Constructor & Destructor Documentation

◆ ImageData()

skgpu::graphite::ImageShaderBlock::ImageData::ImageData ( const SkSamplingOptions sampling,
SkTileMode  tileModeX,
SkTileMode  tileModeY,
SkISize  imgSize,
SkRect  subset,
ReadSwizzle  readSwizzle 
)

Definition at line 659 of file KeyHelpers.cpp.

666 , fTileModes{tileModeX, tileModeY}
667 , fImgSize(imgSize)
668 , fSubset(subset)
669 , fReadSwizzle(readSwizzle) {
670 SkASSERT(fSteps.flags.mask() == 0); // By default, the colorspace should have no effect
671}
#define SkASSERT(cond)
Definition: SkAssert.h:116
SkSamplingOptions sampling
Definition: SkRecords.h:337
constexpr uint32_t mask() const

Member Data Documentation

◆ fImgSize

SkISize skgpu::graphite::ImageShaderBlock::ImageData::fImgSize

Definition at line 176 of file KeyHelpers.h.

◆ fReadSwizzle

ReadSwizzle skgpu::graphite::ImageShaderBlock::ImageData::fReadSwizzle

Definition at line 178 of file KeyHelpers.h.

◆ fSampling

SkSamplingOptions skgpu::graphite::ImageShaderBlock::ImageData::fSampling

Definition at line 174 of file KeyHelpers.h.

◆ fSteps

SkColorSpaceXformSteps skgpu::graphite::ImageShaderBlock::ImageData::fSteps

Definition at line 180 of file KeyHelpers.h.

◆ fSubset

SkRect skgpu::graphite::ImageShaderBlock::ImageData::fSubset

Definition at line 177 of file KeyHelpers.h.

◆ fTextureProxy

sk_sp<TextureProxy> skgpu::graphite::ImageShaderBlock::ImageData::fTextureProxy

Definition at line 185 of file KeyHelpers.h.

◆ fTileModes

SkTileMode skgpu::graphite::ImageShaderBlock::ImageData::fTileModes[2]

Definition at line 175 of file KeyHelpers.h.


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