Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skgpu::ganesh::TextureOp::BatchSizeLimiter Class Reference

Public Member Functions

 BatchSizeLimiter (ganesh::SurfaceDrawContext *sdc, const GrClip *clip, GrRecordingContext *rContext, int numEntries, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, Saturate saturate, SkCanvas::SrcRectConstraint constraint, const SkMatrix &viewMatrix, sk_sp< GrColorSpaceXform > textureColorSpaceXform)
 
void createOp (GrTextureSetEntry set[], int clumpSize, GrAAType aaType)
 
int numLeft () const
 
int baseIndex () const
 

Detailed Description

Definition at line 1213 of file TextureOp.cpp.

Constructor & Destructor Documentation

◆ BatchSizeLimiter()

skgpu::ganesh::TextureOp::BatchSizeLimiter::BatchSizeLimiter ( ganesh::SurfaceDrawContext sdc,
const GrClip clip,
GrRecordingContext rContext,
int  numEntries,
GrSamplerState::Filter  filter,
GrSamplerState::MipmapMode  mm,
Saturate  saturate,
SkCanvas::SrcRectConstraint  constraint,
const SkMatrix viewMatrix,
sk_sp< GrColorSpaceXform textureColorSpaceXform 
)
inline

Definition at line 1215 of file TextureOp.cpp.

1225 : fSDC(sdc)
1226 , fClip(clip)
1227 , fContext(rContext)
1228 , fFilter(filter)
1229 , fMipmapMode(mm)
1230 , fSaturate(saturate)
1231 , fConstraint(constraint)
1232 , fViewMatrix(viewMatrix)
1233 , fTextureColorSpaceXform(textureColorSpaceXform)
1234 , fNumLeft(numEntries) {}
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
Definition: SkPath.cpp:3892

Member Function Documentation

◆ baseIndex()

int skgpu::ganesh::TextureOp::BatchSizeLimiter::baseIndex ( ) const
inline

Definition at line 1257 of file TextureOp.cpp.

1257{ return fNumClumped; }

◆ createOp()

void skgpu::ganesh::TextureOp::BatchSizeLimiter::createOp ( GrTextureSetEntry  set[],
int  clumpSize,
GrAAType  aaType 
)
inline

Definition at line 1236 of file TextureOp.cpp.

1236 {
1237
1238 int clumpProxyCount = proxy_run_count(&set[fNumClumped], clumpSize);
1239 GrOp::Owner op = TextureOpImpl::Make(fContext,
1240 &set[fNumClumped],
1241 clumpSize,
1242 clumpProxyCount,
1243 fFilter,
1244 fMipmapMode,
1245 fSaturate,
1246 aaType,
1247 fConstraint,
1248 fViewMatrix,
1249 fTextureColorSpaceXform);
1250 fSDC->addDrawOp(fClip, std::move(op));
1251
1252 fNumLeft -= clumpSize;
1253 fNumClumped += clumpSize;
1254 }
std::unique_ptr< GrOp > Owner
Definition: GrOp.h:72
void addDrawOp(const GrClip *, GrOp::Owner, const std::function< WillAddOpFn > &=std::function< WillAddOpFn >())
SK_API sk_sp< SkDocument > Make(SkWStream *dst, const SkSerialProcs *=nullptr, std::function< void(const SkPicture *)> onEndPage=nullptr)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not set
Definition: switches.h:76

◆ numLeft()

int skgpu::ganesh::TextureOp::BatchSizeLimiter::numLeft ( ) const
inline

Definition at line 1256 of file TextureOp.cpp.

1256{ return fNumLeft; }

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