Home
last modified time | relevance | path

Searched refs:rrect (Results 1 – 25 of 132) sorted by relevance

123456

/external/chromium_org/third_party/skia/src/gpu/effects/
DGrRRectEffect.cpp82 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/
DGrRRectEffect.cpp80 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/
Dclassify_rrect_clips.lua6 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/
Dclassify_rrect_clips.lua6 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/
Drrect.cpp99 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 …]
Drrects.cpp117 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()
Dblurroundrect.cpp130 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/
Drrect.cpp99 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 …]
Drrects.cpp117 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/
DSampleClock.cpp55 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/
DSampleClock.cpp55 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/
DSkBlurMaskFilter.cpp56 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/
DSkBlurMaskFilter.cpp57 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/
DSkObjectParser.cpp230 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/
DSkObjectParser.cpp230 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/
DSkDumpCanvas.cpp37 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 …]
DSkLuaCanvas.cpp146 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()
DSkProxyCanvas.cpp56 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/
DSkDumpCanvas.cpp39 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 …]
DSkLuaCanvas.cpp146 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/
DSkClipStack.h67 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/
DSkClipStack.h67 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/
DSkNoSaveLayerCanvas.h39 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/
DLoggingCanvas.cpp129 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/
DSkRecorder.cpp107 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()

123456