Home
last modified time | relevance | path

Searched refs:SkRect (Results 1 - 25 of 1395) sorted by relevance

12345678910>>...56

/third_party/skia/modules/sksg/tests/
H A DSGTest.cpp12 #include "include/core/SkRect.h"
28 const SkRect& expected_bounds, in check_inval()
29 const SkRect& expected_inval_bounds, in check_inval()
30 const std::vector<SkRect>* expected_damage) { in check_inval()
78 auto r1 = sksg::Rect::Make(SkRect::MakeWH(100, 100)), in inval_test1()
79 r2 = sksg::Rect::Make(SkRect::MakeWH(100, 100)); in inval_test1()
92 SkRect::MakeWH(100, 100), in inval_test1()
109 std::vector<SkRect> damage = { {0, 0, 100, 100}, { 200, 100, 300, 200} }; in inval_test1()
111 SkRect::MakeWH(300, 200), in inval_test1()
112 SkRect in inval_test1()
[all...]
/third_party/skia/tests/
H A DQuickRejectTest.cpp46 SkRect r = SkRect::MakeWH(10, 10); in test_layers()
53 SkRect bounds = SkRect::MakeLTRB(50, 50, 70, 70); in test_layers()
55 REPORTER_ASSERT(reporter, true == canvas.quickReject(SkRect::MakeWH(10, 10))); in test_layers()
56 REPORTER_ASSERT(reporter, false == canvas.quickReject(SkRect::MakeWH(60, 60))); in test_layers()
61 SkRect r0 = SkRect::MakeLTRB(-50.0f, -50.0f, 50.0f, 50.0f); in test_quick_reject()
62 SkRect r1 = SkRect in test_quick_reject()
[all...]
H A DRecordDrawTest.cpp63 recorder.drawRect(SkRect::MakeWH(200, 300), SkPaint()); in DEF_TEST()
64 recorder.clipRect(SkRect::MakeWH(100, 200)); in DEF_TEST()
126 static bool sloppy_rect_eq(SkRect a, SkRect b) { in sloppy_rect_eq()
127 SkRect inset(a), outset(a); in sloppy_rect_eq()
139 recorder.clipRect(SkRect::MakeWH(400, 500));
141 recorder.drawRect(SkRect::MakeWH(320, 240), SkPaint());
144 SkAutoTMalloc<SkRect> bounds(record.count());
145 SkRecordFillBounds(SkRect::MakeWH(SkIntToScalar(W), SkIntToScalar(H)), record, bounds);
148 REPORTER_ASSERT(r, sloppy_rect_eq(SkRect
[all...]
H A DPathOpsTightBoundsTest.cpp28 SkRect classicBounds = path.getBounds(); in testTightBoundsLines()
29 SkRect tightBounds; in testTightBoundsLines()
78 SkRect classicBounds = path.getBounds(); in testTightBoundsQuads()
79 SkRect tightBounds; in testTightBoundsQuads()
133 const SkRect& bounds = path.getBounds(); in DEF_TEST()
134 SkRect tight; in DEF_TEST()
142 const SkRect& bounds = path.getBounds(); in DEF_TEST()
143 SkRect tight; in DEF_TEST()
152 const SkRect& bounds = path.getBounds(); in DEF_TEST()
153 SkRect tigh in DEF_TEST()
[all...]
H A DAnnotationTest.cpp15 #include "include/core/SkRect.h"
44 SkRect r = SkRect::MakeWH(SkIntToScalar(10), SkIntToScalar(10)); in DEF_TEST()
60 SkRect r = SkRect::MakeXYWH(SkIntToScalar(72), SkIntToScalar(72), in DEF_TEST()
96 SkRect bounds = SkRect::MakeIWH(400, 400); in DEF_TEST()
99 SkRect r = SkRect::MakeXYWH(SkIntToScalar(72), SkIntToScalar(72), SkIntToScalar(288), in DEF_TEST()
113 SkRect bound in DEF_TEST()
[all...]
/third_party/skia/gm/
H A Dbigrect.cpp12 #include "include/core/SkRect.h"
35 SkRect horiz = SkRect::MakeLTRB(-big, 5, big, 10); in draw_big_rect()
38 SkRect vert = SkRect::MakeLTRB(5, -big, 10, big); in draw_big_rect()
41 SkRect fromLeft = SkRect::MakeLTRB(-big, 20, 17, 25); in draw_big_rect()
44 SkRect fromTop = SkRect::MakeLTRB(20, -big, 25, 17); in draw_big_rect()
47 SkRect fromRigh in draw_big_rect()
[all...]
H A Dresizeimagefilter.cpp15 #include "include/core/SkRect.h"
39 const SkRect& rect, in draw()
43 SkRect dstRect; in draw()
61 SkRect ovalRect = rect; in draw()
81 const SkRect srcRect = SkRect::MakeWH(96, 96);
102 SkRect ovalRect = SkRect::MakeWH(16, 16);
107 SkRect inRect = SkRect
[all...]
H A Dimagesource.cpp15 #include "include/core/SkRect.h"
28 const SkRect& clipRect, in fill_rect_filtered()
56 const SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30);
57 const SkRect dstRect = SkRect::MakeXYWH(0, 10, 60, 60);
58 const SkRect clipRect = SkRect::MakeXYWH(0, 0, 100, 100);
59 const SkRect bounds = SkRect
[all...]
H A Dclipdrawdraw.cpp12 #include "include/core/SkRect.h"
24 static void Draw(SkCanvas* canvas, const SkRect& rect) { in Draw()
28 const SkRect bigRect = SkRect::MakeWH(600, 600); in Draw()
45 const SkRect rect1 = SkRect::MakeLTRB(136.5f, 137.5f, 338.5f, 293.5f); in DEF_SIMPLE_GM_BG()
49 const SkRect rect2 = SkRect::MakeLTRB(207.5f, 179.499f, 530.5f, 429.5f); in DEF_SIMPLE_GM_BG()
65 SkRect bounds = { 30, 30, 80, 80 }; in DEF_SIMPLE_GM()
H A Dclip_strokerect.cpp12 #include "include/core/SkRect.h"
38 SkRect r = SkRect::MakeXYWH(20, 20, 100, 100);
40 SkRect rect = SkRect::MakeXYWH(20, 0, 100, 20);
56 SkRect r2 = SkRect::MakeXYWH(20, 140, 100, 100);
58 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19);
H A Dblurs.cpp16 #include "include/core/SkRect.h"
89 SkRect outer = SkRect::MakeXYWH(10.125f, 10.125f, 100.125f, 100); in DEF_SIMPLE_GM()
90 SkRect inner = SkRect::MakeXYWH(20.25f, 20.125f, 80, 80); in DEF_SIMPLE_GM()
107 SkRect outer = SkRect::MakeXYWH(10, 110, 100, 100); in DEF_SIMPLE_GM()
108 SkRect inner = SkRect::MakeXYWH(50, 150, 10, 10); in DEF_SIMPLE_GM()
139 canvas->drawRect(SkRect in DEF_SIMPLE_GM()
[all...]
/third_party/skia/docs/examples/
H A DCanvas_saveLayer_4.cpp22 canvas->drawRect(SkRect::MakeLTRB(10, 10, 60, 60), pRed); in REG_FIDDLE()
23 canvas->drawRect(SkRect::MakeLTRB(150, 10, 200, 60), pRed); in REG_FIDDLE()
25 canvas->drawRect(SkRect::MakeLTRB(30, 10, 80, 60), pSolidBlue); in REG_FIDDLE()
26 canvas->drawRect(SkRect::MakeLTRB(170, 10, 220, 60), pThirtyBlue); in REG_FIDDLE()
32 canvas->drawRect(SkRect::MakeLTRB(10, 70, 60, 120), pRed); in REG_FIDDLE()
33 canvas->drawRect(SkRect::MakeLTRB(150, 70, 200, 120), pRed); in REG_FIDDLE()
40 canvas->drawRect(SkRect::MakeLTRB(30, 70, 80, 120), pSolidBlue); in REG_FIDDLE()
41 canvas->drawRect(SkRect::MakeLTRB(170, 70, 220, 120), pThirtyBlue); in REG_FIDDLE()
50 canvas->drawRect(SkRect::MakeLTRB(10, 130, 60, 180), pRed); in REG_FIDDLE()
51 canvas->drawRect(SkRect in REG_FIDDLE()
[all...]
H A DRect_MakeWH.cpp7 SkRect rect1 = SkRect::MakeWH(25, 35); in REG_FIDDLE()
8 SkRect rect2 = SkRect::MakeIWH(25, 35); in REG_FIDDLE()
9 SkRect rect3 = SkRect::MakeXYWH(0, 0, 25, 35); in REG_FIDDLE()
10 SkRect rect4 = SkRect::MakeLTRB(0, 0, 25, 35); in REG_FIDDLE()
/third_party/skia/src/core/
H A DSkRectPriv.h11 #include "include/core/SkRect.h"
16 // Returns an irect that is very large, and can be safely round-trip with SkRect and still
17 // be considered non-empty (i.e. width/height > 0) even if we round-out the SkRect.
19 // SK_MaxS32 >> 1 seemed better, but it did not survive round-trip with SkRect and rounding. in MakeILarge()
29 static SkRect MakeLargeS32() { in MakeLargeS32()
30 SkRect r; in MakeLargeS32()
35 static SkRect MakeLargest() { in MakeLargest()
39 static constexpr SkRect MakeLargestInverted() { in MakeLargestInverted()
43 static void GrowToInclude(SkRect* r, const SkPoint& pt) { in GrowToInclude()
52 static bool FitsInFixed(const SkRect
[all...]
H A DSkClipStack.h14 #include "include/core/SkRect.h"
76 Element(const SkRect& rect, const SkMatrix& m, SkClipOp op, bool doAA) { in Element()
92 Element(const SkRect& rect, bool doAA) { in Element()
120 const SkRect& getDeviceSpaceRect() const { in getDeviceSpaceRect()
167 const SkRect& getBounds() const;
173 bool contains(const SkRect& rect) const;
233 SkRect fFiniteBound;
253 Element(int saveCount, const SkRect& rect, const SkMatrix& m, SkClipOp op, bool doAA) { in Element()
265 Element(int saveCount, const SkRect& rect, bool doAA) { in Element()
270 void initRect(int saveCount, const SkRect
[all...]
H A DSkRecorder.h44 SkRecorder(SkRecord*, const SkRect& bounds, SkMiniRecorder* = nullptr);
46 void reset(SkRecord*, const SkRect& bounds, SkMiniRecorder* = nullptr);
60 bool onDoSaveBehind(const SkRect*) override;
84 void onDrawRect(const SkRect&, const SkPaint&) override;
86 void onDrawOval(const SkRect&, const SkPaint&) override;
87 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override;
93 void onDrawImageRect2(const SkImage*, const SkRect&, const SkRect&, const SkSamplingOptions&,
95 void onDrawImageLattice2(const SkImage*, const Lattice&, const SkRect&, SkFilterMode,
97 void onDrawAtlas2(const SkImage*, const SkRSXform[], const SkRect[], cons
[all...]
H A DSkMiniRecorder.cpp27 SkRect cullRect() const override { return SkRect::MakeEmpty(); }
32 static SkRect adjust_for_paint(SkRect bounds, const SkPaint& paint) { in adjust_for_paint()
36 static SkRect bounds(const DrawRect& op) { in bounds()
39 static SkRect bounds(const DrawPath& op) { in bounds()
43 static SkRect bounds(const DrawTextBlob& op) { in bounds()
50 SkMiniPicture(const SkRect* cull, T&& op) in SkMiniPicture()
60 SkRect cullRect() const override { return fCull; }
63 SkRect fCul
[all...]
/third_party/skia/bench/
H A DBlurRectsBench.cpp13 #include "include/core/SkRect.h"
18 BlurRectsBench(SkRect outer, SkRect inner, SkScalar radius) { in BlurRectsBench()
47 SkRect fOuter;
48 SkRect fInner;
56 BlurRectsNinePatchBench(SkRect outer, SkRect inner, SkScalar radius) in BlurRectsNinePatchBench()
66 BlurRectsNonNinePatchBench(SkRect outer, SkRect inner, SkScalar radius) in BlurRectsNonNinePatchBench()
75 DEF_BENCH(return new BlurRectsNinePatchBench(SkRect
[all...]
/third_party/skia/include/utils/
H A DSkNWayCanvas.h31 bool onDoSaveBehind(const SkRect*) override;
50 void onDrawRect(const SkRect&, const SkPaint&) override;
52 void onDrawOval(const SkRect&, const SkPaint&) override;
53 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override;
59 void onDrawImageRect2(const SkImage*, const SkRect&, const SkRect&, const SkSamplingOptions&,
61 void onDrawImageLattice2(const SkImage*, const Lattice&, const SkRect&, SkFilterMode,
63 void onDrawAtlas2(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int,
64 SkBlendMode, const SkSamplingOptions&, const SkRect*, const SkPaint*) override;
69 void onClipRect(const SkRect
[all...]
H A DSkNoDrawCanvas.h38 bool onDoSaveBehind(const SkRect*) override;
41 void onDrawAnnotation(const SkRect&, const char[], SkData*) override {}
51 void onDrawRect(const SkRect&, const SkPaint&) override {}
53 void onDrawOval(const SkRect&, const SkPaint&) override {}
54 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override {}
60 void onDrawImageRect2(const SkImage*, const SkRect&, const SkRect&, const SkSamplingOptions&,
62 void onDrawImageLattice2(const SkImage*, const Lattice&, const SkRect&, SkFilterMode,
64 void onDrawAtlas2(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int,
65 SkBlendMode, const SkSamplingOptions&, const SkRect*, cons
[all...]
/third_party/skia/include/core/
H A DSkOverdrawCanvas.h30 void onDrawRect(const SkRect&, const SkPaint&) override;
32 void onDrawOval(const SkRect&, const SkPaint&) override;
33 void onDrawArc(const SkRect&, SkScalar, SkScalar, bool, const SkPaint&) override;
42 void onDrawImageRect2(const SkImage*, const SkRect&, const SkRect&, const SkSamplingOptions&,
44 void onDrawImageLattice2(const SkImage*, const Lattice&, const SkRect&, SkFilterMode,
46 void onDrawAtlas2(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], int,
47 SkBlendMode, const SkSamplingOptions&, const SkRect*, const SkPaint*) override;
52 void onDrawAnnotation(const SkRect&, const char key[], SkData* value) override;
55 void onDrawEdgeAAQuad(const SkRect
[all...]
H A DSkRRect.h12 #include "include/core/SkRect.h"
122 void setRect(const SkRect& rect) { in setRect()
145 static SkRRect MakeRect(const SkRect& r) { in MakeRect()
158 static SkRRect MakeOval(const SkRect& oval) { in MakeOval()
176 static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in MakeRectXY()
188 void setOval(const SkRect& oval);
203 void setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
225 void setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad,
242 void setRectRadii(const SkRect& rect, const SkVector radii[4]);
260 const SkRect
[all...]
H A DSkCanvas.h22 #include "include/core/SkRect.h"
359 /** Copies SkRect of pixels from SkCanvas into dstPixels. SkMatrix and clip are
362 Source SkRect corners are (srcX, srcY) and (imageInfo().width(), imageInfo().height()).
363 Destination SkRect corners are (0, 0) and (dstInfo.width(), dstInfo.height()).
376 are copied. dstPixels contents outside SkRect intersection are unchanged.
396 /** Copies SkRect of pixels from SkCanvas into pixmap. SkMatrix and clip are
399 Source SkRect corners are (srcX, srcY) and (imageInfo().width(), imageInfo().height()).
400 Destination SkRect corners are (0, 0) and (pixmap.width(), pixmap.height()).
412 do not match. Only pixels within both source and destination SkRect
413 are copied. pixmap pixels contents outside SkRect intersectio
2262 onDoSaveBehind(const SkRect*) onDoSaveBehind() argument
[all...]
/third_party/skia/src/effects/imagefilters/
H A DSkTileImageFilter.cpp26 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, sk_sp<SkImageFilter> input) in SkTileImageFilter()
35 SkRect computeFastBounds(const SkRect& src) const override;
46 SkRect fSrcRect;
47 SkRect fDstRect;
55 sk_sp<SkImageFilter> SkImageFilters::Tile(const SkRect& src, in Tile()
56 const SkRect& dst, in Tile()
62 SkRect ir = dst; in Tile()
80 SkRect sr in CreateProc()
[all...]
H A DSkCropImageFilter.cpp18 SkCropImageFilter(const SkRect& cropRect, sk_sp<SkImageFilter> input) in SkCropImageFilter()
26 SkRect computeFastBounds(const SkRect& bounds) const override;
56 skif::ParameterSpace<SkRect> fCropRect;
61 sk_sp<SkImageFilter> SkMakeCropImageFilter(const SkRect& rect, sk_sp<SkImageFilter> input) { in SkMakeCropImageFilter()
74 SkRect cropRect = buffer.readRect(); in CreateProc()
83 buffer.writeRect(SkRect(fCropRect)); in flatten()
153 SkRect SkCropImageFilter::computeFastBounds(const SkRect& bounds) const { in computeFastBounds()
166 return SkRect(fCropRec in computeFastBounds()
[all...]

Completed in 9 milliseconds

12345678910>>...56