Home
last modified time | relevance | path

Searched refs:SkRRect (Results 1 – 25 of 371) sorted by relevance

12345678910>>...15

/external/skqp/docs/
DSkRRect_Reference.bmh5 #Class SkRRect
8 class SkRRect {
10 SkRRect() = default;
11 SkRRect(const SkRRect& rrect) = default;
12 SkRRect& operator=(const SkRRect& rrect) = default;
37 static SkRRect MakeEmpty();
38 static SkRRect MakeRect(const SkRect& r);
39 static SkRRect MakeOval(const SkRect& oval);
40 static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
57 friend bool operator==(const SkRRect& a, const SkRRect& b);
[all …]
/external/skia/docs/
DSkRRect_Reference.bmh5 #Class SkRRect
8 class SkRRect {
10 SkRRect() = default;
11 SkRRect(const SkRRect& rrect) = default;
12 SkRRect& operator=(const SkRRect& rrect) = default;
37 static SkRRect MakeEmpty();
38 static SkRRect MakeRect(const SkRect& r);
39 static SkRRect MakeOval(const SkRect& oval);
40 static SkRRect MakeRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad);
57 friend bool operator==(const SkRRect& a, const SkRRect& b);
[all …]
/external/skia/tests/
DRoundRectTest.cpp16 SkRRect rr; in test_tricky_radii()
29 SkRRect rr; in test_tricky_radii()
32 REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY + in test_tricky_radii()
33 (double) rr.radii(SkRRect::kLowerRight_Corner).fY <= in test_tricky_radii()
39 SkRRect rr; in test_empty_crbug_458524()
44 SkRRect other; in test_empty_crbug_458524()
48 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == other.getType()); in test_empty_crbug_458524()
69 SkRRect r; in test_empty()
116 REPORTER_ASSERT(reporter, r == SkRRect::MakeEmpty()); in test_empty()
118 REPORTER_ASSERT(reporter, r == SkRRect::MakeEmpty()); in test_empty()
[all …]
DRRectInPathTest.cpp14 static SkRRect path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path, in path_contains_rrect()
16 SkRRect out; in path_contains_rrect()
32 SkRRect xrr = SkRRect::MakeRect(SkRect::MakeEmpty()); in path_contains_rrect()
43 static SkRRect inner_path_contains_rrect(skiatest::Reporter* reporter, const SkRRect& in, in inner_path_contains_rrect()
46 case SkRRect::kEmpty_Type: in inner_path_contains_rrect()
47 case SkRRect::kRect_Type: in inner_path_contains_rrect()
48 case SkRRect::kOval_Type: in inner_path_contains_rrect()
57 SkRRect rrect = path_contains_rrect(reporter, path, &outDir, &outStart); in inner_path_contains_rrect()
62 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRRect& in, in path_contains_rrect_check()
64 SkRRect out = inner_path_contains_rrect(reporter, in, dir, start); in path_contains_rrect_check()
[all …]
/external/skqp/tests/
DRoundRectTest.cpp16 SkRRect rr; in test_tricky_radii()
29 SkRRect rr; in test_tricky_radii()
32 REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY + in test_tricky_radii()
33 (double) rr.radii(SkRRect::kLowerRight_Corner).fY <= in test_tricky_radii()
39 SkRRect rr; in test_empty_crbug_458524()
44 SkRRect other; in test_empty_crbug_458524()
48 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == other.getType()); in test_empty_crbug_458524()
69 SkRRect r; in test_empty()
116 REPORTER_ASSERT(reporter, r == SkRRect::MakeEmpty()); in test_empty()
118 REPORTER_ASSERT(reporter, r == SkRRect::MakeEmpty()); in test_empty()
[all …]
DRRectInPathTest.cpp14 static SkRRect path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path, in path_contains_rrect()
16 SkRRect out; in path_contains_rrect()
32 SkRRect xrr = SkRRect::MakeRect(SkRect::MakeEmpty()); in path_contains_rrect()
43 static SkRRect inner_path_contains_rrect(skiatest::Reporter* reporter, const SkRRect& in, in inner_path_contains_rrect()
46 case SkRRect::kEmpty_Type: in inner_path_contains_rrect()
47 case SkRRect::kRect_Type: in inner_path_contains_rrect()
48 case SkRRect::kOval_Type: in inner_path_contains_rrect()
57 SkRRect rrect = path_contains_rrect(reporter, path, &outDir, &outStart); in inner_path_contains_rrect()
62 static void path_contains_rrect_check(skiatest::Reporter* reporter, const SkRRect& in, in path_contains_rrect_check()
64 SkRRect out = inner_path_contains_rrect(reporter, in, dir, start); in path_contains_rrect_check()
[all …]
/external/skqp/include/core/
DSkRRect.h40 class SK_API SkRRect {
48 SkRRect() = default;
55 SkRRect(const SkRRect& rrect) = default;
62 SkRRect& operator=(const SkRRect& rrect) = default;
135 void setEmpty() { *this = SkRRect(); } in setEmpty()
159 static SkRRect MakeEmpty() { return SkRRect(); } in MakeEmpty()
166 static SkRRect MakeRect(const SkRect& r) { in MakeRect()
167 SkRRect rr; in MakeRect()
179 static SkRRect MakeOval(const SkRect& oval) { in MakeOval()
180 SkRRect rr; in MakeOval()
[all …]
/external/skia/include/core/
DSkRRect.h40 class SK_API SkRRect {
48 SkRRect() = default;
55 SkRRect(const SkRRect& rrect) = default;
62 SkRRect& operator=(const SkRRect& rrect) = default;
135 void setEmpty() { *this = SkRRect(); } in setEmpty()
159 static SkRRect MakeEmpty() { return SkRRect(); } in MakeEmpty()
166 static SkRRect MakeRect(const SkRect& r) { in MakeRect()
167 SkRRect rr; in MakeRect()
179 static SkRRect MakeOval(const SkRect& oval) { in MakeOval()
180 SkRRect rr; in MakeOval()
[all …]
/external/skqp/src/gpu/effects/
DGrRRectEffect.cpp30 kTopLeft_CornerFlag = (1 << SkRRect::kUpperLeft_Corner),
31 kTopRight_CornerFlag = (1 << SkRRect::kUpperRight_Corner),
32 kBottomRight_CornerFlag = (1 << SkRRect::kLowerRight_Corner),
33 kBottomLeft_CornerFlag = (1 << SkRRect::kLowerLeft_Corner),
49 uint32_t circularCornerFlags, const SkRRect&);
57 const SkRRect& getRRect() const { return fRRect; } in getRRect()
64 CircularRRectEffect(GrClipEdgeType, uint32_t circularCornerFlags, const SkRRect&);
72 SkRRect fRRect;
83 const SkRRect& rrect) { in Make()
92 const SkRRect& rrect) in CircularRRectEffect()
[all …]
/external/skia/src/gpu/effects/
DGrRRectEffect.cpp30 kTopLeft_CornerFlag = (1 << SkRRect::kUpperLeft_Corner),
31 kTopRight_CornerFlag = (1 << SkRRect::kUpperRight_Corner),
32 kBottomRight_CornerFlag = (1 << SkRRect::kLowerRight_Corner),
33 kBottomLeft_CornerFlag = (1 << SkRRect::kLowerLeft_Corner),
49 uint32_t circularCornerFlags, const SkRRect&);
57 const SkRRect& getRRect() const { return fRRect; } in getRRect()
64 CircularRRectEffect(GrClipEdgeType, uint32_t circularCornerFlags, const SkRRect&);
72 SkRRect fRRect;
83 const SkRRect& rrect) { in Make()
92 const SkRRect& rrect) in CircularRRectEffect()
[all …]
DGrRRectBlurEffect.h33 const SkRRect& rrectToDraw, in find_or_create_rrect_blur_mask()
42 for (auto c : {SkRRect::kUpperLeft_Corner, SkRRect::kUpperRight_Corner, in find_or_create_rrect_blur_mask()
43 SkRRect::kLowerRight_Corner, SkRRect::kLowerLeft_Corner}) { in find_or_create_rrect_blur_mask()
110 const SkRRect& srcRRect,
111 const SkRRect& devRRect);
/external/skqp/gm/
Drrect.cpp14 typedef void (*InsetProc)(const SkRRect&, SkScalar dx, SkScalar dy, SkRRect*);
16 static void inset0(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset0()
27 radii[i] = src.radii((SkRRect::Corner)i); in inset0()
36 static void inset1(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset1()
47 radii[i] = src.radii((SkRRect::Corner)i); in inset1()
52 static void inset2(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset2()
63 radii[i] = src.radii((SkRRect::Corner)i); in inset2()
80 static void inset3(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset3()
91 radii[i] = src.radii((SkRRect::Corner)i); in inset3()
100 static void draw_rrect_color(SkCanvas* canvas, const SkRRect& rrect) { in draw_rrect_color()
[all …]
Dbigrrectaaeffect.cpp24 BigRRectAAEffectGM(const SkRRect& rrect, const char* name) in BigRRectAAEffectGM()
83 SkRRect rrect = fRRect; in onDraw()
112 SkRRect fRRect;
128 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeRect(SkRect::MakeIWH(kSize, kSize)), "rect"); )
129 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeOval(SkRect::MakeIWH(kSize, kSize)), "circle");…
130 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeOval(SkRect::MakeIWH(kSize - 1, kSize - 10)), "…
132 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeRectXY(SkRect::MakeIWH(kSize - 1, kSize - 10), …
133 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeRectXY(SkRect::MakeIWH(kSize - 1, kSize - 10), …
/external/skia/gm/
Drrect.cpp14 typedef void (*InsetProc)(const SkRRect&, SkScalar dx, SkScalar dy, SkRRect*);
16 static void inset0(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset0()
27 radii[i] = src.radii((SkRRect::Corner)i); in inset0()
36 static void inset1(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset1()
47 radii[i] = src.radii((SkRRect::Corner)i); in inset1()
52 static void inset2(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset2()
63 radii[i] = src.radii((SkRRect::Corner)i); in inset2()
80 static void inset3(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset3()
91 radii[i] = src.radii((SkRRect::Corner)i); in inset3()
100 static void draw_rrect_color(SkCanvas* canvas, const SkRRect& rrect) { in draw_rrect_color()
[all …]
Dbigrrectaaeffect.cpp24 BigRRectAAEffectGM(const SkRRect& rrect, const char* name) in BigRRectAAEffectGM()
72 SkRRect rrect = fRRect; in onDraw()
101 SkRRect fRRect;
117 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeRect(SkRect::MakeIWH(kSize, kSize)), "rect"); )
118 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeOval(SkRect::MakeIWH(kSize, kSize)), "circle");…
119 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeOval(SkRect::MakeIWH(kSize - 1, kSize - 10)), "…
121 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeRectXY(SkRect::MakeIWH(kSize - 1, kSize - 10), …
122 DEF_GM( return new BigRRectAAEffectGM (SkRRect::MakeRectXY(SkRect::MakeIWH(kSize - 1, kSize - 10), …
/external/skqp/src/core/
DSkRRect.cpp19 void SkRRect::setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in setRectXY()
55 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, in setNinePatch()
143 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { in setRectRadii()
163 bool SkRRect::initializeRect(const SkRect& rect) { in initializeRect()
166 *this = SkRRect(); in initializeRect()
191 void SkRRect::scaleRadii(const SkRect& rect) { in scaleRadii()
238 bool SkRRect::checkCornerContainment(SkScalar x, SkScalar y) const { in checkCornerContainment()
291 bool SkRRectPriv::AllCornersCircular(const SkRRect& rr, SkScalar tolerance) { in AllCornersCircular()
298 bool SkRRect::contains(const SkRect& rect) const { in contains()
320 return radii[SkRRect::kUpperLeft_Corner].fX == radii[SkRRect::kLowerLeft_Corner].fX && in radii_are_nine_patch()
[all …]
DSkRRectPriv.h18 static bool IsCircle(const SkRRect& rr) { in IsCircle()
22 static SkVector GetSimpleRadii(const SkRRect& rr) { in GetSimpleRadii()
27 static bool IsSimpleCircular(const SkRRect& rr) { in IsSimpleCircular()
31 static bool EqualRadii(const SkRRect& rr) { in EqualRadii()
35 static const SkVector* GetRadiiArray(const SkRRect& rr) { return rr.fRadii; } in GetRadiiArray()
37 static bool AllCornersCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero);
39 static bool ReadFromBuffer(SkRBuffer* buffer, SkRRect* rr);
41 static void WriteToBuffer(const SkRRect& rr, SkWBuffer* buffer);
DSkBlurMF.cpp79 FilterReturn filterRRectToNine(const SkRRect&, const SkMatrix&,
85 bool filterRRectMask(SkMask* dstM, const SkRRect& r, const SkMatrix& matrix,
168 bool SkComputeBlurredRRectParams(const SkRRect& srcRRect, const SkRRect& devRRect, in SkComputeBlurredRRectParams()
171 SkRRect* rrectToDraw, in SkComputeBlurredRRectParams()
182 const SkVector& devRadiiUL = devRRect.radii(SkRRect::kUpperLeft_Corner); in SkComputeBlurredRRectParams()
183 const SkVector& devRadiiUR = devRRect.radii(SkRRect::kUpperRight_Corner); in SkComputeBlurredRRectParams()
184 const SkVector& devRadiiLR = devRRect.radii(SkRRect::kLowerRight_Corner); in SkComputeBlurredRRectParams()
185 const SkVector& devRadiiLL = devRRect.radii(SkRRect::kLowerLeft_Corner); in SkComputeBlurredRRectParams()
198 const SkVector& srcRadiiUL = srcRRect.radii(SkRRect::kUpperLeft_Corner); in SkComputeBlurredRRectParams()
199 const SkVector& srcRadiiUR = srcRRect.radii(SkRRect::kUpperRight_Corner); in SkComputeBlurredRRectParams()
[all …]
DSkClipStack.h78 Element(const SkRRect& rrect, const SkMatrix& m, SkClipOp op, bool doAA) { in Element()
104 const SkRRect& getDeviceSpaceRRect() const { in getDeviceSpaceRRect()
124 const SkRRect& asDeviceSpaceRRect() const { in asDeviceSpaceRRect()
157 bool contains(const SkRRect& rrect) const;
197 SkRRect fDeviceSpaceRRect;
230 Element(int saveCount, const SkRRect& rrect, const SkMatrix& m, SkClipOp op, bool doAA) { in Element()
244 void initRRect(int saveCount, const SkRRect&, const SkMatrix&, SkClipOp, bool doAA);
336 bool quickContains(const SkRRect& devRRect) const { in quickContains()
352 void clipRRect(const SkRRect&, const SkMatrix& matrix, SkClipOp, bool doAA);
379 bool isRRect(const SkRect& bounds, SkRRect* rrect, bool* aa) const;
[all …]
/external/skia/src/core/
DSkRRect.cpp19 void SkRRect::setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in setRectXY()
55 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, in setNinePatch()
143 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { in setRectRadii()
163 bool SkRRect::initializeRect(const SkRect& rect) { in initializeRect()
166 *this = SkRRect(); in initializeRect()
191 void SkRRect::scaleRadii(const SkRect& rect) { in scaleRadii()
238 bool SkRRect::checkCornerContainment(SkScalar x, SkScalar y) const { in checkCornerContainment()
291 bool SkRRectPriv::AllCornersCircular(const SkRRect& rr, SkScalar tolerance) { in AllCornersCircular()
298 bool SkRRect::contains(const SkRect& rect) const { in contains()
320 return radii[SkRRect::kUpperLeft_Corner].fX == radii[SkRRect::kLowerLeft_Corner].fX && in radii_are_nine_patch()
[all …]
DSkRRectPriv.h18 static bool IsCircle(const SkRRect& rr) { in IsCircle()
22 static SkVector GetSimpleRadii(const SkRRect& rr) { in GetSimpleRadii()
27 static bool IsSimpleCircular(const SkRRect& rr) { in IsSimpleCircular()
31 static bool EqualRadii(const SkRRect& rr) { in EqualRadii()
35 static const SkVector* GetRadiiArray(const SkRRect& rr) { return rr.fRadii; } in GetRadiiArray()
37 static bool AllCornersCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero);
39 static bool ReadFromBuffer(SkRBuffer* buffer, SkRRect* rr);
41 static void WriteToBuffer(const SkRRect& rr, SkWBuffer* buffer);
DSkBlurMF.cpp79 FilterReturn filterRRectToNine(const SkRRect&, const SkMatrix&,
85 bool filterRRectMask(SkMask* dstM, const SkRRect& r, const SkMatrix& matrix,
168 bool SkComputeBlurredRRectParams(const SkRRect& srcRRect, const SkRRect& devRRect, in SkComputeBlurredRRectParams()
171 SkRRect* rrectToDraw, in SkComputeBlurredRRectParams()
182 const SkVector& devRadiiUL = devRRect.radii(SkRRect::kUpperLeft_Corner); in SkComputeBlurredRRectParams()
183 const SkVector& devRadiiUR = devRRect.radii(SkRRect::kUpperRight_Corner); in SkComputeBlurredRRectParams()
184 const SkVector& devRadiiLR = devRRect.radii(SkRRect::kLowerRight_Corner); in SkComputeBlurredRRectParams()
185 const SkVector& devRadiiLL = devRRect.radii(SkRRect::kLowerLeft_Corner); in SkComputeBlurredRRectParams()
198 const SkVector& srcRadiiUL = srcRRect.radii(SkRRect::kUpperLeft_Corner); in SkComputeBlurredRRectParams()
199 const SkVector& srcRadiiUR = srcRRect.radii(SkRRect::kUpperRight_Corner); in SkComputeBlurredRRectParams()
[all …]
DSkClipStack.h78 Element(const SkRRect& rrect, const SkMatrix& m, SkClipOp op, bool doAA) { in Element()
104 const SkRRect& getDeviceSpaceRRect() const { in getDeviceSpaceRRect()
124 const SkRRect& asDeviceSpaceRRect() const { in asDeviceSpaceRRect()
157 bool contains(const SkRRect& rrect) const;
197 SkRRect fDeviceSpaceRRect;
230 Element(int saveCount, const SkRRect& rrect, const SkMatrix& m, SkClipOp op, bool doAA) { in Element()
244 void initRRect(int saveCount, const SkRRect&, const SkMatrix&, SkClipOp, bool doAA);
336 bool quickContains(const SkRRect& devRRect) const { in quickContains()
352 void clipRRect(const SkRRect&, const SkMatrix& matrix, SkClipOp, bool doAA);
379 bool isRRect(const SkRect& bounds, SkRRect* rrect, bool* aa) const;
[all …]
/external/skia/site/user/api/
DSkRRect_Reference.md1 SkRRect Reference
5 <a name='SkRRect'></a>
10 class <a href='SkRRect_Reference#SkRRect'>SkRRect</a> {
12 <a href='#SkRRect_empty_constructor'>SkRRect()</a> = default;
13 …<a href='#SkRRect_copy_const_SkRRect'>SkRRect</a>(const <a href='SkRRect_Reference#SkRRect'>SkRRec…
14 …kRRect_Reference#SkRRect'>SkRRect</a>& <a href='#SkRRect_copy_operator'>operator=</a>(const <a hre…
39 …static <a href='SkRRect_Reference#SkRRect'>SkRRect</a> <a href='#SkRRect_MakeEmpty'>MakeEmpty</a>(…
40 …static <a href='SkRRect_Reference#SkRRect'>SkRRect</a> <a href='#SkRRect_MakeRect'>MakeRect</a>(co…
41 …static <a href='SkRRect_Reference#SkRRect'>SkRRect</a> <a href='#SkRRect_MakeOval'>MakeOval</a>(co…
42 …static <a href='SkRRect_Reference#SkRRect'>SkRRect</a> <a href='#SkRRect_MakeRectXY'>MakeRectXY</a…
[all …]
/external/skqp/site/user/api/
DSkRRect_Reference.md1 SkRRect Reference
5 <a name='SkRRect'></a>
10 class <a href='SkRRect_Reference#SkRRect'>SkRRect</a> {
12 <a href='#SkRRect_empty_constructor'>SkRRect()</a> = default;
13 …<a href='#SkRRect_copy_const_SkRRect'>SkRRect</a>(const <a href='SkRRect_Reference#SkRRect'>SkRRec…
14 …kRRect_Reference#SkRRect'>SkRRect</a>& <a href='#SkRRect_copy_operator'>operator=</a>(const <a hre…
39 …static <a href='SkRRect_Reference#SkRRect'>SkRRect</a> <a href='#SkRRect_MakeEmpty'>MakeEmpty</a>(…
40 …static <a href='SkRRect_Reference#SkRRect'>SkRRect</a> <a href='#SkRRect_MakeRect'>MakeRect</a>(co…
41 …static <a href='SkRRect_Reference#SkRRect'>SkRRect</a> <a href='#SkRRect_MakeOval'>MakeOval</a>(co…
42 …static <a href='SkRRect_Reference#SkRRect'>SkRRect</a> <a href='#SkRRect_MakeRectXY'>MakeRectXY</a…
[all …]

12345678910>>...15