Home
last modified time | relevance | path

Searched refs:deviceBounds (Results 1 – 10 of 10) sorted by relevance

/third_party/skia/src/pdf/
DSkPDFShader.cpp88 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.left(), deviceBounds.top()); in make_image_shader()
151 fill_color_from_bitmap(&canvas, deviceBounds.left(), deviceBounds.top(), 0, 0, in make_image_shader()
154 fill_color_from_bitmap(&canvas, width, deviceBounds.top(), deviceBounds.right(), 0, in make_image_shader()
[all …]
DSkPDFDevice.cpp1143 SkIRect deviceBounds, in populate_graphic_state_entry_from_paint() argument
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()
/third_party/skia/src/gpu/v1/
DClipStack.cpp422 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, const SkMatrixProvider* matrixProvider, in ClipStack() argument
[all …]
DClipStack.h44 ClipStack(const SkIRect& deviceBounds, const SkMatrixProvider* matrixProvider, bool forceAA);
145 void simplify(const SkIRect& deviceBounds, bool forceAA);
206 explicit SaveRecord(const SkIRect& deviceBounds);
DDevice.cpp281 const SkRegion deviceBounds(bounds); in onAsRgnClip() local
290 tmp.setPath(tmpPath, deviceBounds); in onAsRgnClip()
/third_party/skia/src/gpu/text/
DGrTextBlob.cpp456 const SkGlyphRect& deviceBounds,
516 const SkGlyphRect& deviceBounds, in DirectMaskSubRun() argument
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, subRunBounds); in makeAtlasTextOp()
[all …]
/third_party/skia/src/core/
DSkClipStack.h350 SkRect bounds(const SkIRect& deviceBounds) const;
351 bool isEmpty(const SkIRect& deviceBounds) const;
DSkClipStack.cpp607 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/
DDevice.cpp152 SkRect deviceBounds = SkRect::Make(this->devClipBounds()); in drawPaint() local
162 SkRect localCoveringBounds = SkMatrixPriv::MapRect(devToLocal, deviceBounds); in drawPaint()
/third_party/skia/tests/
DGrClipStackTest.cpp58 static TestCaseBuilder Build(const char* name, const SkIRect& deviceBounds);
62 const SkIRect& deviceBounds() const { return fDeviceBounds; } in deviceBounds() function in __anonc2b7df300111::TestCase
71 const SkIRect& deviceBounds, in TestCase() argument
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()