/third_party/skia/src/pdf/ |
H A D | SkPDFShader.cpp | 88 SkRect deviceBounds = bBox; in make_image_shader() local 89 if (!SkPDFUtils::InverseTransformBBox(finalMatrix, &deviceBounds)) { in make_image_shader() 100 deviceBounds.join(bitmapBounds); in make_image_shader() 103 SkISize patternDeviceSize = {SkScalarCeilToInt(deviceBounds.width()), in make_image_shader() 104 SkScalarCeilToInt(deviceBounds.height())}; in make_image_shader() 113 canvas.translate(-deviceBounds.left(), -deviceBounds.top()); in make_image_shader() 114 patternBBox.offset(-deviceBounds.left(), -deviceBounds.top()); in make_image_shader() 116 finalMatrix.preTranslate(deviceBounds in make_image_shader() [all...] |
H A D | SkPDFDevice.cpp | 1143 SkIRect deviceBounds, in populate_graphic_state_entry_from_paint() 1185 SkRect clipStackBounds = clipStack ? clipStack->bounds(deviceBounds) in populate_graphic_state_entry_from_paint() 1186 : SkRect::Make(deviceBounds); in populate_graphic_state_entry_from_paint() 1139 populate_graphic_state_entry_from_paint( SkPDFDocument* doc, const SkMatrix& matrix, const SkClipStack* clipStack, SkIRect deviceBounds, const SkPaint& paint, const SkMatrix& initialTransform, SkScalar textScale, SkPDFGraphicStackState::Entry* entry, SkTHashSet<SkPDFIndirectReference>* shaderResources, SkTHashSet<SkPDFIndirectReference>* graphicStateResources) populate_graphic_state_entry_from_paint() argument
|
/third_party/skia/src/gpu/v1/ |
H A D | ClipStack.h | 44 ClipStack(const SkIRect& deviceBounds, const SkMatrixProvider* matrixProvider, bool forceAA); 145 void simplify(const SkIRect& deviceBounds, bool forceAA); 206 explicit SaveRecord(const SkIRect& deviceBounds);
|
H A D | ClipStack.cpp | 422 bool applyDeviceBounds(const SkIRect& deviceBounds) { in applyDeviceBounds() argument 423 return fBounds.intersect(deviceBounds); in applyDeviceBounds() 513 void ClipStack::RawElement::simplify(const SkIRect& deviceBounds, bool forceAA) { in simplify() argument 534 if (!outer.intersect(SkRect::Make(deviceBounds))) { in simplify() 580 if (!fInnerBounds.intersect(deviceBounds)) { in simplify() 594 SkASSERT(fShape.isEmpty() || (!fOuterBounds.isEmpty() && deviceBounds.contains(fOuterBounds))); in simplify() 779 ClipStack::SaveRecord::SaveRecord(const SkIRect& deviceBounds) in SaveRecord() argument 780 : fInnerBounds(deviceBounds) in SaveRecord() 781 , fOuterBounds(deviceBounds) in SaveRecord() 1135 ClipStack::ClipStack(const SkIRect& deviceBounds, cons argument [all...] |
H A D | Device.cpp | 281 const SkRegion deviceBounds(bounds); in onAsRgnClip() 290 tmp.setPath(tmpPath, deviceBounds); in onAsRgnClip()
|
/third_party/skia/src/gpu/text/ |
H A D | GrTextBlob.cpp | 456 const SkGlyphRect& deviceBounds, 516 const SkGlyphRect& deviceBounds, in DirectMaskSubRun() 522 , fGlyphDeviceBounds{deviceBounds} 550 const SkGlyphRect deviceBounds = in Make() local 552 runBounds = skglyph::rect_union(runBounds, deviceBounds); in Make() 553 glyphLeftTop[goodPosCount] = deviceBounds.topLeft(); in Make() 618 calculate_clip(const GrClip* clip, SkRect deviceBounds, SkRect glyphBounds) { in calculate_clip() argument 619 if (clip == nullptr && !deviceBounds.intersects(glyphBounds)) { in calculate_clip() 666 const SkRect deviceBounds = SkRect::MakeWH(sdc->width(), sdc->height()); in makeAtlasTextOp() local 667 auto [clipMethod, clipRect] = calculate_clip(clip, deviceBounds, subRunBound in makeAtlasTextOp() 514 DirectMaskSubRun(GrMaskFormat format, GrTextBlob* blob, const SkGlyphRect& deviceBounds, SkSpan<const DevicePosition> devicePositions, GlyphVector&& glyphs, bool glyphsOutOfBounds) DirectMaskSubRun() argument 1720 DirectMaskSubRunNoCache(GrMaskFormat format, const SkRect& deviceBounds, SkSpan<const DevicePosition> devicePositions, GlyphVector&& glyphs) DirectMaskSubRunNoCache() argument 1753 const SkGlyphRect deviceBounds = Make() local 1799 const SkRect deviceBounds = SkRect::MakeWH(sdc->width(), sdc->height()); makeAtlasTextOp() local [all...] |
/third_party/skia/src/core/ |
H A D | SkClipStack.h | 350 SkRect bounds(const SkIRect& deviceBounds) const; 351 bool isEmpty(const SkIRect& deviceBounds) const;
|
H A D | SkClipStack.cpp | 607 SkRect SkClipStack::bounds(const SkIRect& deviceBounds) const { in bounds() 613 return SkRect::Make(deviceBounds); in bounds() 615 return r.intersect(SkRect::Make(deviceBounds)) ? r : SkRect::MakeEmpty(); in bounds()
|
/third_party/skia/experimental/graphite/src/ |
H A D | Device.cpp | 152 SkRect deviceBounds = SkRect::Make(this->devClipBounds()); in drawPaint() local 162 SkRect localCoveringBounds = SkMatrixPriv::MapRect(devToLocal, deviceBounds); in drawPaint()
|
/third_party/skia/tests/ |
H A D | GrClipStackTest.cpp | 45 // TestCase test = TestCase::Build("example", deviceBounds) 58 static TestCaseBuilder Build(const char* name, const SkIRect& deviceBounds); 62 const SkIRect& deviceBounds() const { return fDeviceBounds; } in deviceBounds() function in __anon19011::TestCase 71 const SkIRect& deviceBounds, in TestCase() 77 , fDeviceBounds(deviceBounds) in TestCase() 194 explicit TestCaseBuilder(const char* name, const SkIRect& deviceBounds) in TestCaseBuilder() argument 196 , fDeviceBounds(deviceBounds) in TestCaseBuilder() 207 TestCaseBuilder TestCase::Build(const char* name, const SkIRect& deviceBounds) { in Build() argument 208 return TestCaseBuilder(name, deviceBounds); in Build() 70 TestCase(SkString name, const SkIRect& deviceBounds, ClipStack::ClipState expectedState, std::vector<ClipStack::Element> actual, std::vector<ClipStack::Element> expected) TestCase() argument
|