8#ifndef AtlasPathRenderer_DEFINED
9#define AtlasPathRenderer_DEFINED
34 const char*
name()
const override {
return "GrAtlasPathRenderer"; }
46 const GrOp* opBeingClipped,
47 std::unique_ptr<GrFragmentProcessor> inputFP,
60 CanDrawPath onCanDrawPath(
const CanDrawPathArgs&)
const override;
62 bool onDrawPath(
const DrawPathArgs&)
override;
68 bool pathFitsInAtlas(
const SkRect& pathDevBounds,
GrAAType fallbackAAType)
const;
82 const SkRect& pathDevBounds,
85 bool* transposedInAtlas,
86 const DrawRefsAtlasCallback&);
92 float fAtlasMaxSize = 0;
93 float fAtlasMaxPathWidth = 0;
94 int fAtlasInitialSize = 0;
102 struct AtlasPathKey {
104 bool operator==(
const AtlasPathKey& k)
const {
105 static_assert(
sizeof(*this) ==
sizeof(uint32_t) * 8);
106 return !memcmp(
this, &k,
sizeof(*
this));
109 float fAffineMatrix[6];
std::tuple< bool, std::unique_ptr< GrFragmentProcessor > > GrFPResult
static bool IsSupported(GrRecordingContext *)
static sk_sp< AtlasPathRenderer > Make(GrRecordingContext *rContext)
const char * name() const override
GrFPResult makeAtlasClipEffect(const skgpu::ganesh::SurfaceDrawContext *, const GrOp *opBeingClipped, std::unique_ptr< GrFragmentProcessor > inputFP, const SkIRect &drawBounds, const SkMatrix &, const SkPath &)
@ kNoSupport_StencilSupport
Dart_NativeFunction function
static uint32_t Hash(uint32_t key)
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
bool operator==(C p1, const scoped_nsprotocol< C > &p2)