/external/chromium_org/third_party/skia/src/gpu/effects/ |
D | GrRRectEffect.cpp | 82 const SkRRect& rrect) { in Create() argument 86 return SkNEW_ARGS(CircularRRectEffect, (edgeType, circularCornerFlags, rrect)); in Create() 98 const SkRRect& rrect) in CircularRRectEffect() argument 99 : fRRect(rrect) in CircularRRectEffect() 122 SkRRect rrect; in TestCreate() local 123 rrect.setRectXY(SkRect::MakeWH(w, h), r, r); in TestCreate() 128 fp = GrRRectEffect::Create(et, rrect); in TestCreate() 308 const SkRRect& rrect = crre.getRRect(); in setData() local 309 if (rrect != fPrevRRect) { in setData() 310 SkRect rect = rrect.getBounds(); in setData() [all …]
|
/external/skia/src/gpu/effects/ |
D | GrRRectEffect.cpp | 80 const SkRRect& rrect) { in Create() argument 85 (edgeType, circularCornerFlags, rrect)))); in Create() 97 const SkRRect& rrect) in CircularRRectEffect() argument 98 : fRRect(rrect) in CircularRRectEffect() 121 SkRRect rrect; in TestCreate() local 122 rrect.setRectXY(SkRect::MakeWH(w, h), r, r); in TestCreate() 126 effect = GrRRectEffect::Create(et, rrect); in TestCreate() 304 const SkRRect& rrect = crre.getRRect(); in setData() local 305 if (rrect != fPrevRRect) { in setData() 306 SkRect rect = rrect.getBounds(); in setData() [all …]
|
/external/skia/tools/lua/ |
D | classify_rrect_clips.lua | 6 function classify_rrect(rrect) 7 if (rrect:type() == "simple") then 8 local x, y = rrect:radii(0) 14 elseif (rrect:type() == "complex") then 21 local x, y = rrect:radii(i-1) 56 elseif (rrect:type() == "rect") then 58 elseif (rrect:type() == "oval") then 59 local x, y = rrect:radii(0) 65 elseif (rrect:type() == "empty") then 91 local rrect = t.rrect [all …]
|
/external/chromium_org/third_party/skia/tools/lua/ |
D | classify_rrect_clips.lua | 6 function classify_rrect(rrect) 7 if (rrect:type() == "simple") then 8 local x, y = rrect:radii(0) 14 elseif (rrect:type() == "complex") then 21 local x, y = rrect:radii(i-1) 56 elseif (rrect:type() == "rect") then 58 elseif (rrect:type() == "oval") then 59 local x, y = rrect:radii(0) 65 elseif (rrect:type() == "empty") then 91 local rrect = t.rrect [all …]
|
/external/chromium_org/third_party/skia/gm/ |
D | rrect.cpp | 99 static void draw_rrect_color(SkCanvas* canvas, const SkRRect& rrect) { in draw_rrect_color() argument 104 if (rrect.isRect()) { in draw_rrect_color() 106 } else if (rrect.isOval()) { in draw_rrect_color() 108 } else if (rrect.isSimple()) { in draw_rrect_color() 113 canvas->drawRRect(rrect, paint); in draw_rrect_color() 116 static void drawrr(SkCanvas* canvas, const SkRRect& rrect, InsetProc proc) { in drawrr() argument 119 proc(rrect, d, d, &rr); in drawrr() 146 SkRRect rrect[4]; in onDraw() local 152 rrect[0].setRect(r); in onDraw() 153 rrect[1].setOval(r); in onDraw() [all …]
|
D | rrects.cpp | 117 SkRRect rrect = fRRects[curRRect]; in onDraw() local 118 rrect.offset(SkIntToScalar(x), SkIntToScalar(y)); in onDraw() 121 rrect)); in onDraw() 128 SkRect bounds = rrect.getBounds(); in onDraw()
|
D | blurroundrect.cpp | 130 SkRRect rrect; in onDraw() local 131 rrect.setRectXY(r, SkIntToScalar(cornerRadii[j]), SkIntToScalar(cornerRadii[j])); in onDraw() 132 canvas->drawRRect(rrect, paint); in onDraw()
|
/external/skia/gm/ |
D | rrect.cpp | 99 static void draw_rrect_color(SkCanvas* canvas, const SkRRect& rrect) { in draw_rrect_color() argument 104 if (rrect.isRect()) { in draw_rrect_color() 106 } else if (rrect.isOval()) { in draw_rrect_color() 108 } else if (rrect.isSimple()) { in draw_rrect_color() 113 canvas->drawRRect(rrect, paint); in draw_rrect_color() 116 static void drawrr(SkCanvas* canvas, const SkRRect& rrect, InsetProc proc) { in drawrr() argument 119 proc(rrect, d, d, &rr); in drawrr() 146 SkRRect rrect[4]; in onDraw() local 152 rrect[0].setRect(r); in onDraw() 153 rrect[1].setOval(r); in onDraw() [all …]
|
D | rrects.cpp | 117 SkRRect rrect = fRRects[curRRect]; in onDraw() local 118 rrect.offset(SkIntToScalar(x), SkIntToScalar(y)); in onDraw() 120 SkAutoTUnref<GrEffectRef> effect(GrRRectEffect::Create(edgeType, rrect)); in onDraw() 127 SkRect bounds = rrect.getBounds(); in onDraw()
|
/external/skia/samplecode/ |
D | SampleClock.cpp | 55 SkRRect rrect; in onDrawContent() local 57 rrect.setRectRadii(rect, radii); in onDrawContent() 68 canvas->drawRRect(rrect, paintFill); in onDrawContent() 83 rrect.setRectRadii(rect, radii); in onDrawContent() 96 canvas->drawRRect(rrect, paintFill); in onDrawContent() 123 rrect.setRectRadii(rect, radii); in onDrawContent() 124 canvas->drawRRect(rrect, paintFill); in onDrawContent() 144 rrect.setRectRadii(rect, radii); in onDrawContent() 145 canvas->drawRRect(rrect, paintFill); in onDrawContent() 166 rrect.setRectRadii(rect, radii); in onDrawContent() [all …]
|
/external/chromium_org/third_party/skia/samplecode/ |
D | SampleClock.cpp | 55 SkRRect rrect; in onDrawContent() local 57 rrect.setRectRadii(rect, radii); in onDrawContent() 68 canvas->drawRRect(rrect, paintFill); in onDrawContent() 83 rrect.setRectRadii(rect, radii); in onDrawContent() 96 canvas->drawRRect(rrect, paintFill); in onDrawContent() 123 rrect.setRectRadii(rect, radii); in onDrawContent() 124 canvas->drawRRect(rrect, paintFill); in onDrawContent() 144 rrect.setRectRadii(rect, radii); in onDrawContent() 145 canvas->drawRRect(rrect, paintFill); in onDrawContent() 166 rrect.setRectRadii(rect, radii); in onDrawContent() [all …]
|
/external/skia/src/effects/ |
D | SkBlurMaskFilter.cpp | 56 const SkRRect& rrect) const SK_OVERRIDE; 200 static bool draw_rrect_into_mask(const SkRRect rrect, SkMask* mask) { in draw_rrect_into_mask() argument 201 if (!prepare_to_draw_into_mask(rrect.rect(), mask)) { in draw_rrect_into_mask() 216 canvas.drawRRect(rrect, paint); in draw_rrect_into_mask() 264 SkBlurMaskFilterImpl::filterRRectToNine(const SkRRect& rrect, const SkMatrix& matrix, in filterRRectToNine() argument 268 switch (rrect.getType()) { in filterRRectToNine() 301 if (rect_exceeds(rrect.rect(), SkIntToScalar(32767))) { in filterRRectToNine() 307 rrect.rect().roundOut(&srcM.fBounds); in filterRRectToNine() 316 filterResult = this->filterRRectMask(&dstM, rrect, matrix, &margin, in filterRRectToNine() 331 const SkVector& UL = rrect.radii(SkRRect::kUpperLeft_Corner); in filterRRectToNine() [all …]
|
/external/chromium_org/third_party/skia/src/effects/ |
D | SkBlurMaskFilter.cpp | 57 const SkRRect& rrect) const SK_OVERRIDE; 203 static bool draw_rrect_into_mask(const SkRRect rrect, SkMask* mask) { in draw_rrect_into_mask() argument 204 if (!prepare_to_draw_into_mask(rrect.rect(), mask)) { in draw_rrect_into_mask() 219 canvas.drawRRect(rrect, paint); in draw_rrect_into_mask() 267 SkBlurMaskFilterImpl::filterRRectToNine(const SkRRect& rrect, const SkMatrix& matrix, in filterRRectToNine() argument 271 switch (rrect.getType()) { in filterRRectToNine() 304 if (rect_exceeds(rrect.rect(), SkIntToScalar(32767))) { in filterRRectToNine() 310 rrect.rect().roundOut(&srcM.fBounds); in filterRRectToNine() 319 filterResult = this->filterRRectMask(&dstM, rrect, matrix, &margin, in filterRRectToNine() 334 const SkVector& UL = rrect.radii(SkRRect::kUpperLeft_Corner); in filterRRectToNine() [all …]
|
/external/skia/src/utils/debugger/ |
D | SkObjectParser.cpp | 230 SkString* SkObjectParser::RRectToString(const SkRRect& rrect, const char* title) { in RRectToString() argument 236 if (rrect.isEmpty()) { in RRectToString() 238 } else if (rrect.isRect()) { in RRectToString() 240 } else if (rrect.isOval()) { in RRectToString() 242 } else if (rrect.isSimple()) { in RRectToString() 244 } else if (rrect.isNinePatch()) { in RRectToString() 247 SkASSERT(rrect.isComplex()); in RRectToString() 255 mRRect->appendScalar(rrect.rect().left()); in RRectToString() 257 mRRect->appendScalar(rrect.rect().top()); in RRectToString() 259 mRRect->appendScalar(rrect.rect().right()); in RRectToString() [all …]
|
/external/chromium_org/third_party/skia/src/utils/debugger/ |
D | SkObjectParser.cpp | 230 SkString* SkObjectParser::RRectToString(const SkRRect& rrect, const char* title) { in RRectToString() argument 236 if (rrect.isEmpty()) { in RRectToString() 238 } else if (rrect.isRect()) { in RRectToString() 240 } else if (rrect.isOval()) { in RRectToString() 242 } else if (rrect.isSimple()) { in RRectToString() 244 } else if (rrect.isNinePatch()) { in RRectToString() 247 SkASSERT(rrect.isComplex()); in RRectToString() 255 mRRect->appendScalar(rrect.rect().left()); in RRectToString() 257 mRRect->appendScalar(rrect.rect().top()); in RRectToString() 259 mRRect->appendScalar(rrect.rect().right()); in RRectToString() [all …]
|
/external/skia/src/utils/ |
D | SkDumpCanvas.cpp | 37 static void toString(const SkRRect& rrect, SkString* str) { in toString() argument 38 SkRect r = rrect.getBounds(); in toString() 42 if (rrect.isOval()) { in toString() 44 } else if (rrect.isSimple()) { in toString() 45 const SkVector& rad = rrect.getSimpleRadii(); in toString() 47 } else if (rrect.isComplex()) { 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() [all …]
|
D | SkLuaCanvas.cpp | 146 void SkLuaCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeStyle) { in onClipRRect() argument 148 lua.pushRRect(rrect, "rrect"); in onClipRRect() 150 this->INHERITED::onClipRRect(rrect, op, edgeStyle); in onClipRRect() 189 void SkLuaCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { in drawRRect() argument 191 lua.pushRRect(rrect, "rrect"); in drawRRect()
|
D | SkProxyCanvas.cpp | 56 void SkProxyCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeStyle) { in onClipRRect() argument 57 fProxy->clipRRect(rrect, op, kSoft_ClipEdgeStyle == edgeStyle); in onClipRRect() 85 void SkProxyCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { in drawRRect() argument 86 fProxy->drawRRect(rrect, paint); in drawRRect()
|
/external/chromium_org/third_party/skia/src/utils/ |
D | SkDumpCanvas.cpp | 39 static void toString(const SkRRect& rrect, SkString* str) { in toString() argument 40 SkRect r = rrect.getBounds(); in toString() 44 if (rrect.isOval()) { in toString() 46 } else if (rrect.isSimple()) { in toString() 47 const SkVector& rad = rrect.getSimpleRadii(); in toString() 49 } else if (rrect.isComplex()) { in toString() 51 rrect.radii(SkRRect::kUpperLeft_Corner), in toString() 52 rrect.radii(SkRRect::kUpperRight_Corner), in toString() 53 rrect.radii(SkRRect::kLowerRight_Corner), in toString() 54 rrect.radii(SkRRect::kLowerLeft_Corner), in toString() [all …]
|
D | SkLuaCanvas.cpp | 146 void SkLuaCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeStyle) { in onClipRRect() argument 148 lua.pushRRect(rrect, "rrect"); in onClipRRect() 150 this->INHERITED::onClipRRect(rrect, op, edgeStyle); in onClipRRect() 189 void SkLuaCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { in drawRRect() argument 191 lua.pushRRect(rrect, "rrect"); in drawRRect()
|
/external/chromium_org/third_party/skia/include/core/ |
D | SkClipStack.h | 67 Element(const SkRRect& rrect, SkRegion::Op op, bool doAA) { in Element() argument 68 this->initRRect(0, rrect, op, doAA); in Element() 213 Element(int saveCount, const SkRRect& rrect, SkRegion::Op op, bool doAA) { in Element() argument 214 this->initRRect(saveCount, rrect, op, doAA); in Element() 243 void initRRect(int saveCount, const SkRRect& rrect, SkRegion::Op op, bool doAA) { in initRRect() argument 244 SkRRect::Type type = rrect.getType(); in initRRect() 245 fRRect = rrect; in initRRect()
|
/external/skia/include/core/ |
D | SkClipStack.h | 67 Element(const SkRRect& rrect, SkRegion::Op op, bool doAA) { in Element() argument 68 this->initRRect(0, rrect, op, doAA); in Element() 213 Element(int saveCount, const SkRRect& rrect, SkRegion::Op op, bool doAA) { in Element() argument 214 this->initRRect(saveCount, rrect, op, doAA); in Element() 243 void initRRect(int saveCount, const SkRRect& rrect, SkRegion::Op op, bool doAA) { in initRRect() argument 244 SkRRect::Type type = rrect.getType(); in initRRect() 245 fRRect = rrect; in initRRect()
|
/external/skia/include/utils/ |
D | SkNoSaveLayerCanvas.h | 39 virtual void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle) SK_OVERRIDE { in onClipRRect() argument 40 this->updateClipConservativelyUsingBounds(rrect.getBounds(), op, false); in onClipRRect()
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
D | LoggingCanvas.cpp | 129 void LoggingCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) in drawRRect() argument 133 params->setObject("rrect", objectForSkRRect(rrect)); in drawRRect() 135 this->SkCanvas::drawRRect(rrect, paint); in drawRRect() 323 void LoggingCanvas::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle style) in onClipRRect() argument 327 params->setObject("rrect", objectForSkRRect(rrect)); in onClipRRect() 330 this->SkCanvas::onClipRRect(rrect, op, style); in onClipRRect() 477 PassRefPtr<JSONObject> LoggingCanvas::objectForRadius(const SkRRect& rrect, SkRRect::Corner corner) in objectForRadius() argument 480 SkVector radius = rrect.radii(corner); in objectForRadius() 514 PassRefPtr<JSONObject> LoggingCanvas::objectForSkRRect(const SkRRect& rrect) in objectForSkRRect() argument 517 rrectItem->setString("type", rrectTypeName(rrect.type())); in objectForSkRRect() [all …]
|
/external/skia/src/core/ |
D | SkRecorder.cpp | 107 void SkRecorder::drawRRect(const SkRRect& rrect, const SkPaint& paint) { in drawRRect() argument 108 APPEND(DrawRRect, delay_copy(paint), rrect); in drawRRect() 250 void SkRecorder::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeStyle) { in onClipRRect() argument 251 APPEND(ClipRRect, rrect, op, edgeStyle == kSoft_ClipEdgeStyle); in onClipRRect() 252 INHERITED(updateClipConservativelyUsingBounds, rrect.getBounds(), op, false); in onClipRRect()
|