Home
last modified time | relevance | path

Searched refs:devIBounds (Results 1 – 12 of 12) sorted by relevance

/third_party/skia/src/gpu/ops/
DAtlasPathRenderer.cpp173 SkIRect* devIBounds, in addPathToAtlas() argument
179 pathDevBounds.roundOut(devIBounds); in addPathToAtlas()
184 SkASSERT(skvx::all(skvx::cast<float>(int2::Load(&devIBounds->fLeft)) == topLeftFloor)); in addPathToAtlas()
185 SkASSERT(skvx::all(skvx::cast<float>(int2::Load(&devIBounds->fRight)) == botRightCeil)); in addPathToAtlas()
188 int widthInAtlas = devIBounds->width(); in addPathToAtlas()
189 int heightInAtlas = devIBounds->height(); in addPathToAtlas()
220 !fAtlasRenderTasks.back()->addPath(viewMatrix, path, devIBounds->topLeft(), widthInAtlas, in addPathToAtlas()
241 SkAssertResult(newAtlasTask->addPath(viewMatrix, path, devIBounds->topLeft(), widthInAtlas, in addPathToAtlas()
300 SkIRect devIBounds; in onDrawPath() local
304 &devIBounds, &locationInAtlas, &transposedInAtlas, in onDrawPath()
[all …]
DAtlasPathRenderer.h83 SkIRect* devIBounds,
/third_party/flutter/skia/tests/
DOctoBoundsTest.cpp140 SkIRect devIBounds; in test_octagon() local
141 octoBounds.roundOut(&devIBounds); in test_octagon()
144 bool clipSuccess = octoBounds.clip(devIBounds); in test_octagon()
148 validate_octo_bounds(reporter, devIBounds, octoBounds); in test_octagon()
154 clipRect.fLeft = next_range_i(rand, devIBounds.left(), devIBounds.right() - 1); in test_octagon()
155 clipRect.fTop = next_range_i(rand, devIBounds.top(), devIBounds.bottom() - 1); in test_octagon()
156 clipRect.fRight = next_range_i(rand, clipRect.left() + 1, devIBounds.right()); in test_octagon()
157 clipRect.fBottom = next_range_i(rand, clipRect.top() + 1, devIBounds.bottom()); in test_octagon()
158 } while (clipRect == devIBounds); in test_octagon()
/third_party/flutter/skia/src/gpu/ccpr/
DGrCCAtlas.cpp136 bool GrCCAtlas::addRect(const SkIRect& devIBounds, SkIVector* offset) { in addRect() argument
141 if (!this->internalPlaceRect(devIBounds.width(), devIBounds.height(), &location)) { in addRect()
144 offset->set(location.x() - devIBounds.left(), location.y() - devIBounds.top()); in addRect()
146 fDrawBounds.fWidth = SkTMax(fDrawBounds.width(), location.x() + devIBounds.width()); in addRect()
147 fDrawBounds.fHeight = SkTMax(fDrawBounds.height(), location.y() + devIBounds.height()); in addRect()
258 GrCCAtlas* GrCCAtlasStack::addRect(const SkIRect& devIBounds, SkIVector* devToAtlasOffset) { in addRect() argument
260 if (fAtlases.empty() || !fAtlases.back().addRect(devIBounds, devToAtlasOffset)) { in addRect()
264 SkASSERT(devIBounds.width() <= fSpecs.fMinWidth); in addRect()
265 SkASSERT(devIBounds.height() <= fSpecs.fMinHeight); in addRect()
266 SkAssertResult(fAtlases.back().addRect(devIBounds, devToAtlasOffset)); in addRect()
DGrCCPerFlushResources.cpp247 if (GrCCAtlas* retiredAtlas = fCopyAtlasStack.addRect(entry->devIBounds(), &newAtlasOffset)) { in upgradeEntryToLiteralCoverageAtlas()
372 GrOctoBounds* octoBounds, SkIRect* devIBounds, SkIVector* devToAtlasOffset) { in renderShapeInAtlas() argument
408 octoBounds->roundOut(devIBounds); in renderShapeInAtlas()
409 SkASSERT(clipIBounds.contains(*devIBounds)); in renderShapeInAtlas()
411 this->placeRenderedPathInAtlas(*devIBounds, enableScissorInAtlas, devToAtlasOffset); in renderShapeInAtlas()
417 *devIBounds, *devToAtlasOffset); in renderShapeInAtlas()
425 *devIBounds, *devToAtlasOffset); in renderShapeInAtlas()
430 this->recordStencilResolveInstance(*devIBounds, *devToAtlasOffset, fillRule); in renderShapeInAtlas()
DGrCCPathCache.cpp358 const GrOctoBounds& octoBounds, const SkIRect& devIBounds, const SkIVector& maskShift) { in setCoverageCountAtlas() argument
370 fCachedAtlas->addPathPixels(devIBounds.height() * devIBounds.width()); in setCoverageCountAtlas()
375 fDevIBounds = devIBounds.makeOffset(-maskShift.fX, -maskShift.fY); in setCoverageCountAtlas()
DGrCCAtlas.h82 bool addRect(const SkIRect& devIBounds, SkIVector* atlasOffset);
159 GrCCAtlas* addRect(const SkIRect& devIBounds, SkIVector* devToAtlasOffset);
DGrCCDrawPathsOp.cpp383 SkIRect devIBounds; in setupResources() local
386 fMaskDevIBounds, fMatrix, fShape, fStrokeDevWidth, &octoBounds, &devIBounds, in setupResources()
399 onFlushRP, atlas, devToAtlasOffset, octoBounds, devIBounds, fCachedMaskShift); in setupResources()
DGrCCPathCache.h220 const SkIRect& devIBounds() const { return fDevIBounds; } in devIBounds() function
234 const GrOctoBounds& octoBounds, const SkIRect& devIBounds, const SkIVector& maskShift);
DGrCCPerFlushResources.h91 GrOctoBounds*, SkIRect* devIBounds, SkIVector* devToAtlasOffset);
/third_party/skia/src/gpu/effects/
DGrModulateAtlasCoverageEffect.cpp18 const SkIRect& devIBounds) in GrModulateAtlasCoverageEffect() argument
22 , fBounds((fFlags & Flags::kCheckBounds) ? devIBounds : SkIRect{0,0,0,0}) { in GrModulateAtlasCoverageEffect()
DGrModulateAtlasCoverageEffect.h26 const SkIRect& devIBounds);