/external/skia/tests/ |
D | RoundRectTest.cpp | 17 SkRRect rr, rr2; in test_inset() 41 SkRRect empty; in test_round_rect_basic() 45 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type()); in test_round_rect_basic() 49 REPORTER_ASSERT(reporter, zeroPt == empty.radii((SkRRect::Corner) i)); in test_round_rect_basic() 55 SkRRect rr1; in test_round_rect_basic() 58 REPORTER_ASSERT(reporter, SkRRect::kRect_Type == rr1.type()); in test_round_rect_basic() 62 REPORTER_ASSERT(reporter, zeroPt == rr1.radii((SkRRect::Corner) i)); in test_round_rect_basic() 67 SkRRect rr2; in test_round_rect_basic() 70 REPORTER_ASSERT(reporter, SkRRect::kOval_Type == rr2.type()); in test_round_rect_basic() 75 rr2.radii((SkRRect::Corner) i).equalsWithinTolerance(halfPoint)); in test_round_rect_basic() [all …]
|
D | GpuDrawPathTest.cpp | 30 canvas->drawRRect(SkRRect(), paint); in test_drawPathEmpty() 42 canvas->drawRRect(SkRRect(), paint); in test_drawPathEmpty()
|
/external/skia/gm/ |
D | rrect.cpp | 13 typedef void (*InsetProc)(const SkRRect&, SkScalar dx, SkScalar dy, SkRRect*); 15 static void inset0(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset0() 26 radii[i] = src.radii((SkRRect::Corner)i); in inset0() 35 static void inset1(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset1() 46 radii[i] = src.radii((SkRRect::Corner)i); in inset1() 51 static void inset2(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset2() 62 radii[i] = src.radii((SkRRect::Corner)i); in inset2() 79 static void inset3(const SkRRect& src, SkScalar dx, SkScalar dy, SkRRect* dst) { in inset3() 90 radii[i] = src.radii((SkRRect::Corner)i); in inset3() 99 static void draw_rrect_color(SkCanvas* canvas, const SkRRect& rrect) { in draw_rrect_color() [all …]
|
D | roundrects.cpp | 142 SkRRect circleRect; in onDraw() 186 SkRRect ellipseRect; in onDraw() 205 SkRRect ellipseRect; in onDraw() 225 SkRRect circleRect; in onDraw() 243 SkRRect circleRect; in onDraw() 303 SkRRect circleRect; in onDraw()
|
D | blurroundrect.cpp | 92 SkRRect fRRect; 130 SkRRect rrect; in onDraw()
|
/external/skia/include/core/ |
D | SkRRect.h | 54 class SK_API SkRRect { 190 friend bool operator==(const SkRRect& a, const SkRRect& b) { 196 friend bool operator!=(const SkRRect& a, const SkRRect& b) { 210 void inset(SkScalar dx, SkScalar dy, SkRRect* dst) const; 224 void outset(SkScalar dx, SkScalar dy, SkRRect* dst) const { in outset() 272 bool transform(const SkMatrix& matrix, SkRRect* dst) const;
|
D | SkMaskFilter.h | 24 class SkRRect; variable 169 virtual FilterReturn filterRRectToNine(const SkRRect&, const SkMatrix&, 189 bool filterRRect(const SkRRect& devRRect, const SkMatrix& devMatrix,
|
D | SkDraw.h | 27 class SkRRect; variable 38 void drawRRect(const SkRRect&, const SkPaint&) const;
|
/external/chromium_org/third_party/skia/include/core/ |
D | SkRRect.h | 54 class SK_API SkRRect { 190 friend bool operator==(const SkRRect& a, const SkRRect& b) { 196 friend bool operator!=(const SkRRect& a, const SkRRect& b) { 210 void inset(SkScalar dx, SkScalar dy, SkRRect* dst) const; 224 void outset(SkScalar dx, SkScalar dy, SkRRect* dst) const { in outset() 272 bool transform(const SkMatrix& matrix, SkRRect* dst) const;
|
D | SkMaskFilter.h | 24 class SkRRect; variable 169 virtual FilterReturn filterRRectToNine(const SkRRect&, const SkMatrix&, 189 bool filterRRect(const SkRRect& devRRect, const SkMatrix& devMatrix,
|
D | SkDraw.h | 27 class SkRRect; variable 38 void drawRRect(const SkRRect&, const SkPaint&) const;
|
/external/chromium_org/third_party/skia/src/effects/ |
D | SkBlurMaskFilter.cpp | 56 virtual FilterReturn filterRRectToNine(const SkRRect&, const SkMatrix&, 180 static bool draw_rrect_into_mask(const SkRRect rrect, SkMask* mask) { in draw_rrect_into_mask() 240 SkBlurMaskFilterImpl::filterRRectToNine(const SkRRect& rrect, const SkMatrix& matrix, in filterRRectToNine() 245 case SkRRect::kUnknown_Type: in filterRRectToNine() 249 case SkRRect::kEmpty_Type: in filterRRectToNine() 253 case SkRRect::kRect_Type: in filterRRectToNine() 257 case SkRRect::kOval_Type: in filterRRectToNine() 262 case SkRRect::kSimple_Type: in filterRRectToNine() 264 case SkRRect::kComplex_Type: in filterRRectToNine() 295 const SkVector& UL = rrect.radii(SkRRect::kUpperLeft_Corner); in filterRRectToNine() [all …]
|
/external/skia/src/effects/ |
D | SkBlurMaskFilter.cpp | 56 virtual FilterReturn filterRRectToNine(const SkRRect&, const SkMatrix&, 180 static bool draw_rrect_into_mask(const SkRRect rrect, SkMask* mask) { in draw_rrect_into_mask() 240 SkBlurMaskFilterImpl::filterRRectToNine(const SkRRect& rrect, const SkMatrix& matrix, in filterRRectToNine() 245 case SkRRect::kUnknown_Type: in filterRRectToNine() 249 case SkRRect::kEmpty_Type: in filterRRectToNine() 253 case SkRRect::kRect_Type: in filterRRectToNine() 257 case SkRRect::kOval_Type: in filterRRectToNine() 262 case SkRRect::kSimple_Type: in filterRRectToNine() 264 case SkRRect::kComplex_Type: in filterRRectToNine() 295 const SkVector& UL = rrect.radii(SkRRect::kUpperLeft_Corner); in filterRRectToNine() [all …]
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkRRect.cpp | 13 void SkRRect::setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in setRectXY() 46 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { in setRectRadii() 115 fType = (SkRRect::Type) kUnknown_Type; in setRectRadii() 122 bool SkRRect::checkCornerContainment(SkScalar x, SkScalar y) const { in checkCornerContainment() 175 bool SkRRect::contains(const SkRect& rect) const { in contains() 197 void SkRRect::computeType() const { in computeType() 243 bool SkRRect::transform(const SkMatrix& matrix, SkRRect* dst) const { in transform() 318 void SkRRect::inset(SkScalar dx, SkScalar dy, SkRRect* dst) const { in inset() 342 size_t SkRRect::writeToMemory(void* buffer) const { in writeToMemory() 350 size_t SkRRect::readFromMemory(const void* buffer, size_t length) { in readFromMemory() [all …]
|
D | SkPath.cpp | 907 SkRRect rrect; in addRoundRect() 964 static void add_corner_quads(SkPath* path, const SkRRect& rrect, in add_corner_quads() 965 SkRRect::Corner corner, SkPath::Direction dir) { in add_corner_quads() 984 ? corner == SkRRect::kLowerLeft_Corner || corner == SkRRect::kUpperRight_Corner in add_corner_quads() 985 : corner == SkRRect::kUpperLeft_Corner || corner == SkRRect::kLowerRight_Corner); in add_corner_quads() 1005 SkASSERT(corner == SkRRect::kLowerLeft_Corner || corner == SkRRect::kUpperLeft_Corner); in add_corner_quads() 1010 SkASSERT(corner == SkRRect::kLowerRight_Corner || corner == SkRRect::kUpperRight_Corner); in add_corner_quads() 1015 if (corner < SkRRect::kLowerRight_Corner) { in add_corner_quads() 1039 void SkPath::addRRect(const SkRRect& rrect, Direction dir) { in addRRect() 1066 bounds.fBottom - rrect.fRadii[SkRRect::kLowerLeft_Corner].fY); in addRRect() [all …]
|
/external/skia/src/core/ |
D | SkRRect.cpp | 13 void SkRRect::setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { in setRectXY() 46 void SkRRect::setRectRadii(const SkRect& rect, const SkVector radii[4]) { in setRectRadii() 115 fType = (SkRRect::Type) kUnknown_Type; in setRectRadii() 122 bool SkRRect::checkCornerContainment(SkScalar x, SkScalar y) const { in checkCornerContainment() 175 bool SkRRect::contains(const SkRect& rect) const { in contains() 197 void SkRRect::computeType() const { in computeType() 243 bool SkRRect::transform(const SkMatrix& matrix, SkRRect* dst) const { in transform() 318 void SkRRect::inset(SkScalar dx, SkScalar dy, SkRRect* dst) const { in inset() 342 size_t SkRRect::writeToMemory(void* buffer) const { in writeToMemory() 350 size_t SkRRect::readFromMemory(const void* buffer, size_t length) { in readFromMemory() [all …]
|
D | SkPath.cpp | 907 SkRRect rrect; in addRoundRect() 964 static void add_corner_quads(SkPath* path, const SkRRect& rrect, in add_corner_quads() 965 SkRRect::Corner corner, SkPath::Direction dir) { in add_corner_quads() 984 ? corner == SkRRect::kLowerLeft_Corner || corner == SkRRect::kUpperRight_Corner in add_corner_quads() 985 : corner == SkRRect::kUpperLeft_Corner || corner == SkRRect::kLowerRight_Corner); in add_corner_quads() 1005 SkASSERT(corner == SkRRect::kLowerLeft_Corner || corner == SkRRect::kUpperLeft_Corner); in add_corner_quads() 1010 SkASSERT(corner == SkRRect::kLowerRight_Corner || corner == SkRRect::kUpperRight_Corner); in add_corner_quads() 1015 if (corner < SkRRect::kLowerRight_Corner) { in add_corner_quads() 1039 void SkPath::addRRect(const SkRRect& rrect, Direction dir) { in addRRect() 1066 bounds.fBottom - rrect.fRadii[SkRRect::kLowerLeft_Corner].fY); in addRRect() [all …]
|
/external/skia/src/utils/ |
D | SkLua.cpp | 38 DEF_MTNAME(SkRRect) in DEF_MTNAME() 212 void SkLua::pushRRect(const SkRRect& rr, const char key[]) { in pushRRect() 900 static const char* rrect_type(const SkRRect& rr) { in rrect_type() 902 case SkRRect::kUnknown_Type: return "unknown"; in rrect_type() 903 case SkRRect::kEmpty_Type: return "empty"; in rrect_type() 904 case SkRRect::kRect_Type: return "rect"; in rrect_type() 905 case SkRRect::kOval_Type: return "oval"; in rrect_type() 906 case SkRRect::kSimple_Type: return "simple"; in rrect_type() 907 case SkRRect::kComplex_Type: return "complex"; in rrect_type() 914 SkLua(L).pushRect(get_obj<SkRRect>(L, 1)->rect()); in lrrect_rect() [all …]
|
D | SkDumpCanvas.cpp | 37 static void toString(const SkRRect& rrect, SkString* str) { in toString() 49 rrect.radii(SkRRect::kUpperLeft_Corner), in toString() 50 rrect.radii(SkRRect::kUpperRight_Corner), in toString() 51 rrect.radii(SkRRect::kLowerRight_Corner), in toString() 52 rrect.radii(SkRRect::kLowerLeft_Corner), in toString() 282 bool SkDumpCanvas::clipRRect(const SkRRect& rrect, SkRegion::Op op, bool doAA) { in clipRRect() 330 void SkDumpCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { in drawRRect()
|
/external/chromium_org/third_party/skia/src/utils/ |
D | SkLua.cpp | 38 DEF_MTNAME(SkRRect) in DEF_MTNAME() 212 void SkLua::pushRRect(const SkRRect& rr, const char key[]) { in pushRRect() 900 static const char* rrect_type(const SkRRect& rr) { in rrect_type() 902 case SkRRect::kUnknown_Type: return "unknown"; in rrect_type() 903 case SkRRect::kEmpty_Type: return "empty"; in rrect_type() 904 case SkRRect::kRect_Type: return "rect"; in rrect_type() 905 case SkRRect::kOval_Type: return "oval"; in rrect_type() 906 case SkRRect::kSimple_Type: return "simple"; in rrect_type() 907 case SkRRect::kComplex_Type: return "complex"; in rrect_type() 914 SkLua(L).pushRect(get_obj<SkRRect>(L, 1)->rect()); in lrrect_rect() [all …]
|
D | SkDumpCanvas.cpp | 37 static void toString(const SkRRect& rrect, SkString* str) { in toString() 49 rrect.radii(SkRRect::kUpperLeft_Corner), in toString() 50 rrect.radii(SkRRect::kUpperRight_Corner), in toString() 51 rrect.radii(SkRRect::kLowerRight_Corner), in toString() 52 rrect.radii(SkRRect::kLowerLeft_Corner), in toString() 282 bool SkDumpCanvas::clipRRect(const SkRRect& rrect, SkRegion::Op op, bool doAA) { in clipRRect() 330 void SkDumpCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { in drawRRect()
|
/external/skia/include/utils/ |
D | SkLua.h | 22 class SkRRect; variable 51 void pushRRect(const SkRRect&, const char tableKey[] = NULL);
|
D | SkLuaCanvas.h | 36 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE; 46 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE;
|
/external/chromium_org/third_party/skia/include/utils/ |
D | SkLua.h | 22 class SkRRect; variable 51 void pushRRect(const SkRRect&, const char tableKey[] = NULL);
|
D | SkLuaCanvas.h | 36 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE; 46 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE;
|