Lines Matching defs:path
88 // The atlas is only used for small-area paths, which means at least one dimension of every path is
89 // guaranteed to be quite small. So if we transpose tall paths, then every path will have a small
93 // Ensure every path in the atlas falls in or below the 256px high rectanizer band.
100 // http://skbug.com/12291 -- The way GrDynamicAtlas works, a single 2048x1 path is given an entire
107 // b/195095846: There is a bug with the atlas path renderer on OpenGL iOS. Disable until we can
118 // default path renderer when tessellation isn't available.
149 return // Ensure the path's largest dimension fits in the atlas.
157 void AtlasPathRenderer::AtlasPathKey::set(const SkMatrix& m, const SkPath& path) {
159 fPathGenID = path.getGenerationID();
166 fFillRule = (uint32_t)GrFillRuleForSkPath(path); // Fill rule doesn't affect the path's genID.
171 const SkPath& path,
181 // is_visible() should have guaranteed the path's bounds were representable as ints, since clip
190 // is_visible() should have guaranteed the path's bounds were non-empty.
205 // pathFitsInAtlas() should have guaranteed these constraints on the path size.
209 // Check if this path is already in the atlas. This is mainly for clip paths.
211 if (!path.isVolatile()) {
212 atlasPathKey.set(viewMatrix, path);
220 !fAtlasRenderTasks.back()->addPath(viewMatrix, path, devIBounds->topLeft(), widthInAtlas,
241 SkAssertResult(newAtlasTask->addPath(viewMatrix, path, devIBounds->topLeft(), widthInAtlas,
247 // Remember this path's location in the atlas, in case it gets drawn again.
248 if (!path.isVolatile()) {
285 SkPath path;
286 args.fShape->asPath(&path);
292 // The path is empty or outside the clip. No mask is needed.
293 if (path.isInverseFillType()) {
303 SkAssertResult(this->addPathToAtlas(args.fContext, *args.fViewMatrix, path, pathDevBounds,
329 const SkPath& path) {
334 const SkRect pathDevBounds = viewMatrix.mapRect(path.getBounds());
336 // The path is empty or outside the drawBounds. No mask is needed.
337 return path.isInverseFillType() ? GrFPSuccess(std::move(inputFP))
344 // The path is too big.
358 if (!this->addPathToAtlas(sdc->recordingContext(), viewMatrix, path, pathDevBounds, &devIBounds,
374 if (path.isInverseFillType()) {
380 // opposed to us having to check the path bounds. Feel free to remove this assert if that
382 SkASSERT(path.isInverseFillType());