/external/skia/src/core/ |
D | SkRRect.cpp | 16 fRect = rect; in setRectXY() 17 fRect.sort(); in setRectXY() 19 if (fRect.isEmpty() || !fRect.isFinite()) { in setRectXY() 33 if (fRect.width() < xRad+xRad || fRect.height() < yRad+yRad) { in setRectXY() 34 SkScalar scale = SkMinScalar(fRect.width() / (xRad + xRad), fRect.height() / (yRad + yRad)); in setRectXY() 44 if (xRad >= SkScalarHalf(fRect.width()) && yRad >= SkScalarHalf(fRect.height())) { in setRectXY() 54 fRect = rect; in setNinePatch() 55 fRect.sort(); in setNinePatch() 57 if (fRect.isEmpty() || !fRect.isFinite()) { in setNinePatch() 74 if (leftRad + rightRad > fRect.width()) { in setNinePatch() [all …]
|
D | SkRegion.cpp | 1297 fRect = rgn.fBounds; in reset() 1301 fRect.set(fRuns[3], fRuns[0], fRuns[4], fRuns[1]); in reset() 1321 fRect.fLeft = runs[0]; in next() 1322 fRect.fRight = runs[1]; in next() 1329 fRect.fTop = runs[0]; in next() 1332 fRect.fTop = fRect.fBottom; in next() 1335 fRect.fBottom = runs[0]; in next() 1338 fRect.fLeft = runs[2]; in next() 1339 fRect.fRight = runs[3]; in next() 1356 if (fRect.intersect(clip, r)) { in Cliperator() [all …]
|
/external/skia/src/animator/ |
D | SkDrawRectangle.cpp | 26 SK_MEMBER_ALIAS(bottom, fRect.fBottom, Float), 28 SK_MEMBER_ALIAS(left, fRect.fLeft, Float), 30 SK_MEMBER_ALIAS(right, fRect.fRight, Float), 31 SK_MEMBER_ALIAS(top, fRect.fTop, Float), 40 fRect.setEmpty(); in SkDrawRect() 50 maker.fCanvas->drawRect(fRect, *maker.fPaint); in draw() 58 SkScalarToFloat(fRect.fLeft), SkScalarToFloat(fRect.fTop), SkScalarToFloat(fRect.fRight), in dump() 59 SkScalarToFloat(fRect.fBottom)); in dump() 71 result = fRect.height(); in getProperty() 78 result = fRect.width(); in getProperty() [all …]
|
D | SkPathParts.cpp | 218 SK_MEMBER_ALIAS(bottom, fRect.fBottom, Float), 219 SK_MEMBER_ALIAS(left, fRect.fLeft, Float), 220 SK_MEMBER_ALIAS(right, fRect.fRight, Float), 221 SK_MEMBER_ALIAS(top, fRect.fTop, Float) 229 fRect.setEmpty(); in SkAddRect() 233 fPath->fPath.addRect(fRect, (SkPath::Direction) direction); in add() 249 fPath->fPath.addOval(fRect, (SkPath::Direction) direction); in add() 292 fPath->fPath.addRoundRect(fRect, rx, ry, (SkPath::Direction) direction); in add()
|
D | SkDrawSaveLayer.cpp | 44 maker.fCanvas->saveLayer(&bounds->fRect, &realPaint); in draw() 47 maker.fCanvas->saveLayer(&bounds->fRect, save); in draw()
|
/external/skia/src/gpu/batches/ |
D | GrClearBatch.h | 22 , fRect(rect) in GrClearBatch() 36 fColor, fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom, in dumpInfo() 48 if (cb->fRect.contains(fRect)) { in onCombineIfPossible() 49 fRect = cb->fRect; in onCombineIfPossible() 53 } else if (cb->fColor == fColor && fRect.contains(cb->fRect)) { in onCombineIfPossible() 62 state->gpu()->clear(fRect, fColor, fRenderTarget.get()); in onDraw() 65 SkIRect fRect; variable 78 , fRect(rect) in GrClearStencilClipBatch() 92 fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom, fInsideClip, in dumpInfo() 103 state->gpu()->clearStencilClip(fRect, fInsideClip, fRenderTarget.get()); in onDraw() [all …]
|
D | GrNonAAStrokeRectBatch.cpp | 46 SkRect fRect; member 69 geometry.fRect = rect; in append() 74 geometry.fRect.sort(); in append() 96 *bounds = geo.fRect; in setupBounds() 149 init_stroke_rect_strip(vertex, args.fRect, args.fStrokeWidth); in onPrepareDraws() 153 vertex[0].set(args.fRect.fLeft, args.fRect.fTop); in onPrepareDraws() 154 vertex[1].set(args.fRect.fRight, args.fRect.fTop); in onPrepareDraws() 155 vertex[2].set(args.fRect.fRight, args.fRect.fBottom); in onPrepareDraws() 156 vertex[3].set(args.fRect.fLeft, args.fRect.fBottom); in onPrepareDraws() 157 vertex[4].set(args.fRect.fLeft, args.fRect.fTop); in onPrepareDraws()
|
D | GrNonAAFillRectBatch.cpp | 35 geo.fViewMatrix.mapRect(outBounds, geo.fRect); in SetBounds() 40 SkRect bounds = geo.fRect; in UpdateBoundsAfterAppend() 120 SkRect fRect; member 132 geo.fRect.fLeft, geo.fRect.fTop, geo.fRect.fRight, geo.fRect.fBottom); in DumpInfo() 153 tesselate(vertices, vertexStride, geo.fColor, geo.fViewMatrix, geo.fRect, &geo.fLocalQuad); in Tesselate() 163 SkRect fRect; member 177 geo.fRect.fLeft, geo.fRect.fTop, geo.fRect.fRight, geo.fRect.fBottom); in DumpInfo() 206 tesselate(vertices, vertexStride, geo.fColor, geo.fViewMatrix, geo.fRect, &quad); in Tesselate() 208 tesselate(vertices, vertexStride, geo.fColor, geo.fViewMatrix, geo.fRect, nullptr); in Tesselate() 224 geo.fRect = rect; in append_to_batch() [all …]
|
D | GrAAFillRectBatch.cpp | 213 SkRect fRect; member 225 geo.fRect.fLeft, geo.fRect.fTop, geo.fRect.fRight, geo.fRect.fBottom); in DumpInfo() 253 geo.fColor, geo.fViewMatrix, geo.fRect, geo.fDevRect, in Tesselate() 263 SkRect fRect; member 275 geo.fRect.fLeft, geo.fRect.fTop, geo.fRect.fRight, geo.fRect.fBottom); in DumpInfo() 301 geo.fColor, geo.fViewMatrix, geo.fRect, geo.fDevRect, in Tesselate() 315 geo.fRect = rect; in append_to_batch() 326 geo.fRect = rect; in append_to_batch()
|
/external/skia/include/core/ |
D | SkRRect.h | 112 SkScalar width() const { return fRect.width(); } in width() 113 SkScalar height() const { return fRect.height(); } in height() 119 fRect.setEmpty(); in setEmpty() 130 fRect = rect; in setRect() 131 fRect.sort(); in setRect() 133 if (fRect.isEmpty()) { in setRect() 167 fRect = oval; in setOval() 168 fRect.sort(); in setOval() 170 if (fRect.isEmpty()) { in setOval() 175 SkScalar xRad = SkScalarHalf(fRect.width()); in setOval() [all …]
|
D | SkRegion.h | 319 const SkIRect& rect() const { return fRect; } in rect() 326 SkIRect fRect; variable 339 const SkIRect& rect() const { return fRect; } in rect() 344 SkIRect fRect; variable
|
/external/skia/samplecode/ |
D | SampleDraw.cpp | 170 RDraw(const SkRect& r, Style s) : fRect(r), fStyle(s) {} in RDraw() 173 fRect = r; in setRect() 184 canvas->drawRect(fRect, fPaint); in onDraw() 187 canvas->drawOval(fRect, fPaint); in onDraw() 190 SkScalar rx = fRect.width() / 5; in onDraw() 191 SkScalar ry = fRect.height() / 5; in onDraw() 197 canvas->drawRoundRect(fRect, rx, ry, fPaint); in onDraw() 202 path.addOval(fRect, SkPath::kCW_Direction); in onDraw() 203 SkRect r = fRect; in onDraw() 204 r.inset(fRect.width()/6, 0); in onDraw() [all …]
|
D | SampleRegion.cpp | 197 fRect = fBase; in RegionView() 198 fRect.inset(5, 5); in RegionView() 199 fRect.offset(25, 25); in RegionView() 212 rgn->op(fRect, op); in build_rgn() 239 drawstr(canvas, "Intersects", pts[0], rgn.intersects(fRect)); in drawPredicates() 240 drawstr(canvas, "Contains", pts[1], rgn.contains(fRect)); in drawPredicates() 255 r.set(fRect); in drawOrig() 394 return fRect.contains(SkScalarRoundToInt(x), in onFindClickHandler() 399 fRect.offset(click->fICurr.fX - click->fIPrev.fX, in onClick() 406 SkIRect fBase, fRect; member in RegionView
|
D | SampleArc.cpp | 83 SkRect fRect; member in ArcsView 92 fRect.set(0, 0, SkIntToScalar(200), SkIntToScalar(200)); in ArcsView() 93 fRect.offset(SkIntToScalar(20), SkIntToScalar(20)); in ArcsView() 94 fAnimatingDrawable = new MyDrawable(fRect); in ArcsView() 187 DrawRectWithLines(canvas, fRect, paint); in drawRoot()
|
/external/skia/gm/ |
D | simpleaaclip.cpp | 61 fRect = fBase; in onOnceBeforeDraw() 62 fRect.inset(5, 5); in onOnceBeforeDraw() 63 fRect.offset(25, 25); in onOnceBeforeDraw() 66 fRectPath.addRoundRect(fRect, SkIntToScalar(5), SkIntToScalar(5)); in onOnceBeforeDraw() 85 canvas->drawRect(fRect, paint); in drawOrig() 114 canvas->clipRect(fRect, op, true); in drawPathsOped() 188 SkRect fRect; member in skiagm::SimpleClipGM
|
D | convexpolyeffect.cpp | 36 SkRect fRect; member 54 fGeometry.fRect.outset(5.f, 5.f); in ConvexPolyTestBatch() 76 fGeometry.fRect.toQuad(verts); in generateGeometry() 203 geometry.fRect = p.getBounds(); in onDraw() 249 geometry.fRect = rect; in onDraw()
|
D | bleed.cpp | 33 SkIRect fRect; // The region of the bitmap/image that should be rendered. member 103 result->fRect.set(2, 2, width - 2, height - 2); in make_ringed_bitmap() 249 result->fRect.set(2, 2, width, height); in make_oversized_texture_bitmap() 356 SkRect src = SkRect::Make(fSmallTestPixels.fRect); in drawCase1() 372 SkRect src = SkRect::Make(fBigTestPixels.fRect); in drawCase2() 388 SkRect src = SkRect::MakeXYWH(SkIntToScalar(fBigTestPixels.fRect.fLeft), in drawCase3() 389 SkIntToScalar(fBigTestPixels.fRect.fTop), in drawCase3() 390 fBigTestPixels.fRect.width()/2.f, in drawCase3() 391 fBigTestPixels.fRect.height()/2.f); in drawCase3() 407 SkRect src = SkRect::Make(fSmallTestPixels.fRect); in drawCase4() [all …]
|
D | convexpolyclip.cpp | 237 canvas->clipRect(fRect, op, aa); in setOnCanvas() 253 path->addRect(fRect); in asClosedPath() 268 fRect = rect; in setRect() 280 *bounds = fRect; in getBounds() 291 SkRect fRect; member in skiagm::ConvexPolyClip::Clip
|
D | pathcontourstart.cpp | 41 fRect = SkRect::MakeLTRB(10, 10, 100, 70); in ContourStartGM() 100 SkRect fRect; member in skiagm::ContourStartGM 115 const SkPath path = makePath(fRect, dir, i); in drawOneColumn()
|
D | shadows.cpp | 30 SkRect fRect; member in skiagm::ShadowsGM 37 fRect.set(SkIntToScalar(10), SkIntToScalar(10), in onOnceBeforeDraw() 115 canvas->drawRect(fRect, paint); in onDraw()
|
/external/skia/bench/ |
D | ShapesBench.cpp | 139 fRect.setRect(SkRect::MakeXYWH(-w / 2, -h / 2, w, h)); in onDelayedSetup() 140 fOval.setOval(fRect.rect()); in onDelayedSetup() 141 fRRect.setNinePatch(fRect.rect(), w / 8, h / 13, w / 11, h / 7); in onDelayedSetup() 144 fRect.inset(w / 7, h / 11, &fInnerRect); in onDelayedSetup() 180 fShapes[i].fDraw = bind(&SkCanvas::drawRect, _1, cref(fRect.rect()), _2); in onDelayedSetup() 192 case kRect_ShapesType: outer = &fRect; break; in onDelayedSetup() 240 SkRRect fRect; member in ShapesBench
|
D | AAClipBench.cpp | 177 SkRect fRect; member in AAClipBuilderBench 191 fRect.set(fRegion.getBounds()); in AAClipBuilderBench() 192 fRect.inset(SK_Scalar1/4, SK_Scalar1/4); in AAClipBuilderBench() 193 fPath.addRoundRect(fRect, SkIntToScalar(20), SkIntToScalar(20)); in AAClipBuilderBench() 207 clip.setRect(fRect, fDoAA); in onDraw()
|
/external/skia/tests/ |
D | InfRectTest.cpp | 17 SkIRect fRect; member 31 gData[index].fRect.centerX() == gData[index].fCenter.x()); in test_center() 33 gData[index].fRect.centerY() == gData[index].fCenter.y()); in test_center()
|
/external/skia/src/gpu/effects/ |
D | GrConvexPolyEffect.cpp | 19 const SkRect& getRect() const { return fRect; } in getRect() 33 : fRect(rect), fEdgeType(edgeType) { in AARectEffect() 42 return fRect == aare.fRect; in onIsEqual() 46 if (fRect.isEmpty()) { in onComputeInvariantOutput() 54 SkRect fRect; member in AARectEffect
|
/external/skia/include/gpu/ |
D | GrTypesPriv.h | 378 void set(const SkIRect& rect) { fRect = rect; fEnabled = true; } in set() 381 (false == fEnabled || fRect == other.fRect); 386 const SkIRect& rect() const { return fRect; } in rect() 390 SkIRect fRect; member
|