Home
last modified time | relevance | path

Searched refs:iRect (Results 1 – 14 of 14) sorted by relevance

/external/skia/tests/
DSkGlyphTest.cpp16 REPORTER_ASSERT(reporter, a.iRect() == SkIRect::MakeLTRB(1, 1, 10, 10)); in DEF_TEST()
19 REPORTER_ASSERT(reporter, a.iRect() == SkIRect::MakeLTRB(1, 1, 10, 10)); in DEF_TEST()
27 REPORTER_ASSERT(reporter, acc.iRect() == SkIRect::MakeLTRB(9, 9, 10, 10)); in DEF_TEST()
35 REPORTER_ASSERT(reporter, acc.iRect() == SkIRect::MakeLTRB(-10, -10, 29, 29)); in DEF_TEST()
DRegionTest.cpp500 auto iRect = iter.rect(); in DEF_TEST() local
501 REPORTER_ASSERT(reporter, iRect.isEmpty()); in DEF_TEST()
502 REPORTER_ASSERT(reporter, SkIRect::MakeEmpty() == iRect); in DEF_TEST()
/external/skia/docs/examples/
DCanvas_clipRegion.cpp9 SkIRect iRect = {30, 40, 120, 130 }; in draw() local
10 SkRegion region(iRect); in draw()
17 canvas->clipRect(SkRect::Make(iRect), SkClipOp::kIntersect); in draw()
DRegion_intersects.cpp15 SkIRect iRect = SkIRect::MakeXYWH(frame * 160, 55, 10, 10);
16 paint.setColor(region.intersects(iRect) ? SK_ColorBLUE : SK_ColorRED);
17 canvas->drawRect(SkRect::Make(iRect), paint);
/external/skia/src/gpu/
DSkGpuDevice_drawTexture.cpp218 static inline void clamped_outset_with_offset(SkIRect* iRect, int outset, SkPoint* offset, in clamped_outset_with_offset() argument
220 iRect->outset(outset, outset); in clamped_outset_with_offset()
222 int leftClampDelta = clamp.fLeft - iRect->fLeft; in clamped_outset_with_offset()
225 iRect->fLeft = clamp.fLeft; in clamped_outset_with_offset()
230 int topClampDelta = clamp.fTop - iRect->fTop; in clamped_outset_with_offset()
233 iRect->fTop = clamp.fTop; in clamped_outset_with_offset()
238 if (iRect->fRight > clamp.fRight) { in clamped_outset_with_offset()
239 iRect->fRight = clamp.fRight; in clamped_outset_with_offset()
241 if (iRect->fBottom > clamp.fBottom) { in clamped_outset_with_offset()
242 iRect->fBottom = clamp.fBottom; in clamped_outset_with_offset()
/external/skqp/src/gpu/
DSkGpuDevice.cpp855 static inline void clamped_outset_with_offset(SkIRect* iRect, in clamped_outset_with_offset() argument
859 iRect->outset(outset, outset); in clamped_outset_with_offset()
861 int leftClampDelta = clamp.fLeft - iRect->fLeft; in clamped_outset_with_offset()
864 iRect->fLeft = clamp.fLeft; in clamped_outset_with_offset()
869 int topClampDelta = clamp.fTop - iRect->fTop; in clamped_outset_with_offset()
872 iRect->fTop = clamp.fTop; in clamped_outset_with_offset()
877 if (iRect->fRight > clamp.fRight) { in clamped_outset_with_offset()
878 iRect->fRight = clamp.fRight; in clamped_outset_with_offset()
880 if (iRect->fBottom > clamp.fBottom) { in clamped_outset_with_offset()
881 iRect->fBottom = clamp.fBottom; in clamped_outset_with_offset()
/external/skqp/tests/
DRegionTest.cpp500 auto iRect = iter.rect(); in DEF_TEST() local
501 REPORTER_ASSERT(reporter, iRect.isEmpty()); in DEF_TEST()
502 REPORTER_ASSERT(reporter, SkIRect::MakeEmpty() == iRect); in DEF_TEST()
/external/skia/src/core/
DSkGlyph.h195 SkIRect iRect() const { in iRect() function
309 SkIRect iRect() const { return SkIRect::MakeXYWH(fLeft, fTop, fWidth, fHeight); } in iRect() function
DSkScalerContext.cpp612 } else if (origGlyph.iRect() == unfilteredGlyph->iRect()) { in getImage()
/external/skqp/docs/
DSkRegion_Reference.bmh1026 SkIRect iRect = SkIRect::MakeXYWH(frame * 160, 55, 10, 10);
1027 paint.setColor(region.intersects(iRect) ? SK_ColorBLUE : SK_ColorRED);
1028 canvas->drawRect(SkRect::Make(iRect), paint);
DSkCanvas_Reference.bmh2098 region is unaffected by canvas rotation; iRect is affected by canvas rotation.
2105 SkIRect iRect = {30, 40, 120, 130 };
2106 SkRegion region(iRect);
2113 canvas->clipRect(SkRect::Make(iRect), SkClipOp::kIntersect);
/external/skia/src/pdf/
DSkPDFFont.cpp591 glyphBBox = glyph->iRect(); in emit_subset_type3()
/external/skia/src/gpu/text/
DGrTextBlob.cpp805 SkIRect outBounds = fGlyphDeviceBounds.iRect(); in deviceRect()
/external/skqp/site/user/api/
DSkCanvas_Reference.md2712 …is unaffected by <a href='SkCanvas_Reference#Canvas'>canvas</a> rotation; iRect is affected by <a …