/external/skqp/src/core/ |
D | SkRRect.cpp | 28 if (fRect.width() < xRad+xRad || fRect.height() < yRad+yRad) { in setRectXY() 30 SkScalar scale = SkMinScalar(sk_ieee_float_divide(fRect. width(), xRad + xRad), in setRectXY() 31 sk_ieee_float_divide(fRect.height(), yRad + yRad)); in setRectXY() 47 if (xRad >= SkScalarHalf(fRect.width()) && yRad >= SkScalarHalf(fRect.height())) { in setRectXY() 73 if (leftRad + rightRad > fRect.width()) { in setNinePatch() 74 scale = fRect.width() / (leftRad + rightRad); in setNinePatch() 76 if (topRad + bottomRad > fRect.height()) { in setNinePatch() 77 scale = SkMinScalar(scale, fRect.height() / (topRad + bottomRad)); in setNinePatch() 88 if (leftRad >= SkScalarHalf(fRect.width()) && topRad >= SkScalarHalf(fRect.height())) { in setNinePatch() 169 fRect = rect.makeSorted(); in initializeRect() [all …]
|
/external/skia/src/core/ |
D | SkRRect.cpp | 28 if (fRect.width() < xRad+xRad || fRect.height() < yRad+yRad) { in setRectXY() 30 SkScalar scale = SkMinScalar(sk_ieee_float_divide(fRect. width(), xRad + xRad), in setRectXY() 31 sk_ieee_float_divide(fRect.height(), yRad + yRad)); in setRectXY() 47 if (xRad >= SkScalarHalf(fRect.width()) && yRad >= SkScalarHalf(fRect.height())) { in setRectXY() 73 if (leftRad + rightRad > fRect.width()) { in setNinePatch() 74 scale = fRect.width() / (leftRad + rightRad); in setNinePatch() 76 if (topRad + bottomRad > fRect.height()) { in setNinePatch() 77 scale = SkMinScalar(scale, fRect.height() / (topRad + bottomRad)); in setNinePatch() 88 if (leftRad >= SkScalarHalf(fRect.width()) && topRad >= SkScalarHalf(fRect.height())) { in setNinePatch() 169 fRect = rect.makeSorted(); in initializeRect() [all …]
|
/external/skqp/include/core/ |
D | SkRRect.h | 112 SkScalar width() const { return fRect.width(); } in width() 119 SkScalar height() const { return fRect.height(); } in height() 214 SkScalar xRad = SkScalarHalf(fRect.width()); in setOval() 215 SkScalar yRad = SkScalarHalf(fRect.height()); in setOval() 291 const SkRect& rect() const { return fRect; } in rect() 308 const SkRect& getBounds() const { return fRect; } in getBounds() 320 return a.fRect == b.fRect && SkScalarsEqual(&a.fRadii[0].fX, &b.fRadii[0].fX, 8); 333 return a.fRect != b.fRect || !SkScalarsEqual(&a.fRadii[0].fX, &b.fRadii[0].fX, 8); 415 fRect.offset(dx, dy); in offset() 425 return SkRRect(fRect.makeOffset(dx, dy), fRadii, fType); in makeOffset() [all …]
|
/external/skia/include/core/ |
D | SkRRect.h | 112 SkScalar width() const { return fRect.width(); } in width() 119 SkScalar height() const { return fRect.height(); } in height() 214 SkScalar xRad = SkScalarHalf(fRect.width()); in setOval() 215 SkScalar yRad = SkScalarHalf(fRect.height()); in setOval() 291 const SkRect& rect() const { return fRect; } in rect() 308 const SkRect& getBounds() const { return fRect; } in getBounds() 320 return a.fRect == b.fRect && SkScalarsEqual(&a.fRadii[0].fX, &b.fRadii[0].fX, 8); 333 return a.fRect != b.fRect || !SkScalarsEqual(&a.fRadii[0].fX, &b.fRadii[0].fX, 8); 415 fRect.offset(dx, dy); in offset() 425 return SkRRect(fRect.makeOffset(dx, dy), fRadii, fType); in makeOffset() [all …]
|
/external/skia/src/gpu/ |
D | GrScissorState.h | 16 GrScissorState(const SkIRect& rect) : fEnabled(true), fRect(rect) {} in GrScissorState() 18 void set(const SkIRect& rect) { fRect = rect; fEnabled = true; } in set() 24 return fRect.intersect(rect); in intersect() 28 (false == fEnabled || fRect == other.fRect); 33 const SkIRect& rect() const { return fRect; } in rect() 37 SkIRect fRect; variable
|
/external/skqp/src/gpu/ |
D | GrScissorState.h | 16 GrScissorState(const SkIRect& rect) : fEnabled(true), fRect(rect) {} in GrScissorState() 18 void set(const SkIRect& rect) { fRect = rect; fEnabled = true; } in set() 24 return fRect.intersect(rect); in intersect() 28 (false == fEnabled || fRect == other.fRect); 33 const SkIRect& rect() const { return fRect; } in rect() 37 SkIRect fRect; variable
|
/external/skia/src/codec/ |
D | SkFrameHolder.h | 32 fRect.setEmpty(); in SkFrame() 100 fRect.setXYWH(x, y, width, height); in setXYWH() 106 SkIRect frameRect() const { return fRect; } in frameRect() 108 int xOffset() const { return fRect.x(); } in xOffset() 109 int yOffset() const { return fRect.y(); } in yOffset() 110 int width() const { return fRect.width(); } in width() 111 int height() const { return fRect.height(); } in height() 152 SkIRect fRect; variable
|
/external/skqp/src/codec/ |
D | SkFrameHolder.h | 32 fRect.setEmpty(); in SkFrame() 100 fRect.setXYWH(x, y, width, height); in setXYWH() 106 SkIRect frameRect() const { return fRect; } in frameRect() 108 int xOffset() const { return fRect.x(); } in xOffset() 109 int yOffset() const { return fRect.y(); } in yOffset() 110 int width() const { return fRect.width(); } in width() 111 int height() const { return fRect.height(); } in height() 152 SkIRect fRect; variable
|
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/bindings/ |
D | BindingsVersioningTest.java | 47 struct.fRect = newRect(5); in newStruct() 76 v1.fRect = newRect(5); in testOldToNew() 79 expected.fRect = newRect(5); in testOldToNew() 90 v3.fRect = newRect(5); in testOldToNew() 94 expected.fRect = newRect(5); in testOldToNew() 106 v5.fRect = newRect(5); in testOldToNew() 111 expected.fRect = newRect(5); in testOldToNew() 125 v7.fRect = newRect(5); in testOldToNew() 134 expected.fRect = newRect(5); in testOldToNew() 170 expected.fRect = newRect(5); in testNewToOld() [all …]
|
/external/skia/modules/sksg/src/ |
D | SkSGRect.cpp | 16 Rect::Rect(const SkRect& rect) : fRect(rect) {} in Rect() 19 canvas->clipRect(fRect, SkClipOp::kIntersect, antiAlias); in onClip() 23 canvas->drawRect(fRect, paint); in onDraw() 27 return fRect.contains(p.x(), p.y()); in onContains() 33 return fRect; in onRevalidate() 38 path.addRect(fRect, this->getDirection(), this->getInitialPointIndex()); in onAsPath()
|
/external/skqp/modules/sksg/src/ |
D | SkSGRect.cpp | 16 Rect::Rect(const SkRect& rect) : fRect(rect) {} in Rect() 19 canvas->clipRect(fRect, SkClipOp::kIntersect, antiAlias); in onClip() 23 canvas->drawRect(fRect, paint); in onDraw() 29 return fRect; in onRevalidate() 34 path.addRect(fRect, this->getDirection(), this->getInitialPointIndex()); in onAsPath()
|
/external/skqp/tests/ |
D | TracingTest.cpp | 62 TracingRect(SkRect rect) : fRect(rect) {} in TracingRect() 66 fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom); in toString() 69 SkRect fRect; member
|
/external/skia/tests/ |
D | TracingTest.cpp | 62 TracingRect(SkRect rect) : fRect(rect) {} in TracingRect() 66 fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom); in toString() 69 SkRect fRect; member
|
/external/skia/gm/ |
D | simpleaaclip.cpp | 62 fRect = fBase; in onOnceBeforeDraw() 63 fRect.inset(5, 5); in onOnceBeforeDraw() 64 fRect.offset(25, 25); in onOnceBeforeDraw() 67 fRectPath.addRoundRect(fRect, SkIntToScalar(5), SkIntToScalar(5)); in onOnceBeforeDraw() 86 canvas->drawRect(fRect, paint); in drawOrig() 115 canvas->clipRect(fRect, op, true); in drawPathsOped() 185 SkRect fRect; member in skiagm::SimpleClipGM
|
/external/skqp/gm/ |
D | simpleaaclip.cpp | 62 fRect = fBase; in onOnceBeforeDraw() 63 fRect.inset(5, 5); in onOnceBeforeDraw() 64 fRect.offset(25, 25); in onOnceBeforeDraw() 67 fRectPath.addRoundRect(fRect, SkIntToScalar(5), SkIntToScalar(5)); in onOnceBeforeDraw() 86 canvas->drawRect(fRect, paint); in drawOrig() 115 canvas->clipRect(fRect, op, true); in drawPathsOped() 185 SkRect fRect; member in skiagm::SimpleClipGM
|
/external/skqp/samplecode/ |
D | SampleXfer.cpp | 39 SkRect fRect; member 44 fRect = rect; in init() 52 canvas->drawRoundRect(fRect, 8, 8, paint); in draw() 58 …SkTextUtils::DrawString(canvas, fLabel.c_str(), fRect.centerX(), fRect.fTop + 0.68f * fRect.height… in draw() 63 return fRect.intersects(x - 1, y - 1, x + 1, y + 1); in hitTest()
|
D | SampleRegion.cpp | 158 fRect = fBase; in RegionView() 159 fRect.inset(5, 5); in RegionView() 160 fRect.offset(25, 25); in RegionView() 173 rgn->op(fRect, op); in build_rgn() 199 drawstr(canvas, "Intersects", pts[0], rgn.intersects(fRect)); in drawPredicates() 200 drawstr(canvas, "Contains", pts[1], rgn.contains(fRect)); in drawPredicates() 215 r.set(fRect); in drawOrig() 335 return fRect.contains(SkScalarRoundToInt(x), in onFindClickHandler() 340 fRect.offset(click->fICurr.fX - click->fIPrev.fX, in onClick() 346 SkIRect fBase, fRect; member in RegionView
|
/external/skia/samplecode/ |
D | SampleXfer.cpp | 39 SkRect fRect; member 44 fRect = rect; in init() 52 canvas->drawRoundRect(fRect, 8, 8, paint); in draw() 58 …SkTextUtils::DrawString(canvas, fLabel.c_str(), fRect.centerX(), fRect.fTop + 0.68f * fRect.height… in draw() 63 return fRect.intersects(x - 1, y - 1, x + 1, y + 1); in hitTest()
|
D | SampleRegion.cpp | 158 fRect = fBase; in RegionView() 159 fRect.inset(5, 5); in RegionView() 160 fRect.offset(25, 25); in RegionView() 173 rgn->op(fRect, op); in build_rgn() 199 drawstr(canvas, "Intersects", pts[0], rgn.intersects(fRect)); in drawPredicates() 200 drawstr(canvas, "Contains", pts[1], rgn.contains(fRect)); in drawPredicates() 215 r.set(fRect); in drawOrig() 335 return fRect.contains(SkScalarRoundToInt(x), in onFindClickHandler() 340 fRect.offset(click->fICurr.fX - click->fIPrev.fX, in onClick() 346 SkIRect fBase, fRect; member in RegionView
|
/external/skqp/modules/sksg/include/ |
D | SkSGRect.h | 30 SG_ATTRIBUTE(L, SkScalar, fRect.fLeft ) 31 SG_ATTRIBUTE(T, SkScalar, fRect.fTop ) 32 SG_ATTRIBUTE(R, SkScalar, fRect.fRight ) 33 SG_ATTRIBUTE(B, SkScalar, fRect.fBottom) 48 SkRect fRect; variable
|
/external/skia/modules/sksg/include/ |
D | SkSGRect.h | 30 SG_ATTRIBUTE(L, SkScalar, fRect.fLeft ) 31 SG_ATTRIBUTE(T, SkScalar, fRect.fTop ) 32 SG_ATTRIBUTE(R, SkScalar, fRect.fRight ) 33 SG_ATTRIBUTE(B, SkScalar, fRect.fBottom) 49 SkRect fRect; variable
|
/external/skqp/src/gpu/ops/ |
D | GrStrokeRectOp.cpp | 101 fColor.toBytes_RGBA(), fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom, in dumpInfo() 137 fRect = rect; in NonAAStrokeRectOp() 139 fRect.sort(); in NonAAStrokeRectOp() 205 init_nonaa_stroke_rect_strip(vertex, fRect, fStrokeWidth); in onPrepareDraws() 209 vertex[0].set(fRect.fLeft, fRect.fTop); in onPrepareDraws() 210 vertex[1].set(fRect.fRight, fRect.fTop); in onPrepareDraws() 211 vertex[2].set(fRect.fRight, fRect.fBottom); in onPrepareDraws() 212 vertex[3].set(fRect.fLeft, fRect.fBottom); in onPrepareDraws() 213 vertex[4].set(fRect.fLeft, fRect.fTop); in onPrepareDraws() 228 SkRect fRect; member in __anon33467c410111::NonAAStrokeRectOp
|
/external/skia/src/gpu/ops/ |
D | GrStrokeRectOp.cpp | 102 fColor.toBytes_RGBA(), fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom, in dumpInfo() 138 fRect = rect; in NonAAStrokeRectOp() 140 fRect.sort(); in NonAAStrokeRectOp() 208 init_nonaa_stroke_rect_strip(vertex, fRect, fStrokeWidth); in onPrepareDraws() 212 vertex[0].set(fRect.fLeft, fRect.fTop); in onPrepareDraws() 213 vertex[1].set(fRect.fRight, fRect.fTop); in onPrepareDraws() 214 vertex[2].set(fRect.fRight, fRect.fBottom); in onPrepareDraws() 215 vertex[3].set(fRect.fLeft, fRect.fBottom); in onPrepareDraws() 216 vertex[4].set(fRect.fLeft, fRect.fTop); in onPrepareDraws() 234 SkRect fRect; member in __anonb8faa60a0111::NonAAStrokeRectOp
|
/external/skia/src/gpu/effects/ |
D | GrAARectEffect.h | 19 const SkRect& rect() const { return fRect; } in rect() 32 , fRect(rect) {} in GrAARectEffect() 38 SkRect fRect; variable
|
/external/skqp/src/gpu/effects/ |
D | GrAARectEffect.h | 19 const SkRect& rect() const { return fRect; } in rect() 32 , fRect(rect) {} in GrAARectEffect() 38 SkRect fRect; variable
|