Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkSVGDevice::ResourceBucket Class Reference
Inheritance diagram for SkSVGDevice::ResourceBucket:
SkNoncopyable

Public Member Functions

 ResourceBucket ()
 
SkString addLinearGradient ()
 
SkString addPath ()
 
SkString addImage ()
 
SkString addColorFilter ()
 
SkString addPattern ()
 

Detailed Description

Definition at line 237 of file SkSVGDevice.cpp.

Constructor & Destructor Documentation

◆ ResourceBucket()

SkSVGDevice::ResourceBucket::ResourceBucket ( )
inline

Definition at line 239 of file SkSVGDevice.cpp.

240 : fGradientCount(0)
241 , fPathCount(0)
242 , fImageCount(0)
243 , fPatternCount(0)
244 , fColorFilterCount(0) {}

Member Function Documentation

◆ addColorFilter()

SkString SkSVGDevice::ResourceBucket::addColorFilter ( )
inline

Definition at line 258 of file SkSVGDevice.cpp.

258{ return SkStringPrintf("cfilter_%u", fColorFilterCount++); }
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.

◆ addImage()

SkString SkSVGDevice::ResourceBucket::addImage ( )
inline

Definition at line 254 of file SkSVGDevice.cpp.

254 {
255 return SkStringPrintf("img_%u", fImageCount++);
256 }

◆ addLinearGradient()

SkString SkSVGDevice::ResourceBucket::addLinearGradient ( )
inline

Definition at line 246 of file SkSVGDevice.cpp.

246 {
247 return SkStringPrintf("gradient_%u", fGradientCount++);
248 }

◆ addPath()

SkString SkSVGDevice::ResourceBucket::addPath ( )
inline

Definition at line 250 of file SkSVGDevice.cpp.

250 {
251 return SkStringPrintf("path_%u", fPathCount++);
252 }

◆ addPattern()

SkString SkSVGDevice::ResourceBucket::addPattern ( )
inline

Definition at line 260 of file SkSVGDevice.cpp.

260 {
261 return SkStringPrintf("pattern_%u", fPatternCount++);
262 }

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