/external/skia/gm/ |
D | complexclip2.cpp | 61 fRects[0].set(xB, yB, xE, yE); in onOnceBeforeDraw() 62 fRRects[0].setRectXY(fRects[0], 7, 7); in onOnceBeforeDraw() 63 fPaths[0].addRoundRect(fRects[0], 5, 5); in onOnceBeforeDraw() 66 fRects[1].set(xA, yA, xD, yD); in onOnceBeforeDraw() 67 fRRects[1].setRectXY(fRects[1], 7, 7); in onOnceBeforeDraw() 68 fPaths[1].addRoundRect(fRects[1], 5, 5); in onOnceBeforeDraw() 71 fRects[2].set(xC, yA, xF, yD); in onOnceBeforeDraw() 72 fRRects[2].setRectXY(fRects[2], 7, 7); in onOnceBeforeDraw() 73 fPaths[2].addRoundRect(fRects[2], 5, 5); in onOnceBeforeDraw() 76 fRects[3].set(xA, yC, xD, yF); in onOnceBeforeDraw() [all …]
|
D | rects.cpp | 210 fRects.push_back(r); in makeRects() 216 fRects.push_back(r); in makeRects() 222 fRects.push_back(r); in makeRects() 228 fRects.push_back(r); in makeRects() 234 fRects.push_back(r); in makeRects() 250 for (int j = 0; j < fRects.count(); ++j, ++testCount) { in onDraw() 253 canvas->drawRect(fRects[j], fPaints[i]); in onDraw() 263 for (int j = 0; j < fRects.count(); ++j, ++testCount) { in onDraw() 267 canvas->drawRect(fRects[j], paint); in onDraw() 276 SkTArray<SkRect> fRects; member in skiagm::RectsGM
|
D | convexpolyeffect.cpp | 140 fRects.addToTail(SkRect::MakeLTRB(5.f, 1.f, 30.f, 25.f)); in onOnceBeforeDraw() 142 fRects.addToTail(SkRect::MakeLTRB(5.5f, 0.5f, 29.5f, 24.5f)); in onOnceBeforeDraw() 144 fRects.addToTail(SkRect::MakeLTRB(5.25f, 0.5f, 5.75f, 24.5f)); in onOnceBeforeDraw() 145 fRects.addToTail(SkRect::MakeLTRB(5.5f, 0.5f, 29.5f, 0.75f)); in onOnceBeforeDraw() 147 fRects.addToTail(SkRect::MakeLTRB(5.55f, 0.5f, 5.75f, 24.5f)); in onOnceBeforeDraw() 148 fRects.addToTail(SkRect::MakeLTRB(5.5f, .05f, 29.5f, .25f)); in onOnceBeforeDraw() 150 fRects.addToTail(SkRect::MakeLTRB(5.05f, .55f, 5.45f, .85f)); in onOnceBeforeDraw() 152 fRects.addToTail(SkRect::MakeLTRB(100.f, 50.5f, 5.f, 0.5f)); in onOnceBeforeDraw() 207 for (RectList::Iter iter(fRects, RectList::Iter::kHead_IterStart); in onDraw() 252 RectList fRects; member in skiagm::ConvexPolyEffect
|
/external/skia/samplecode/ |
D | SampleRectanizer.cpp | 31 fRects[i].setReserve(kNumRandRects); in RectanizerView() 37 *fRects[0].append() = SkISize::Make(random.nextRangeU(kMinRectSize, kMaxRectSize), in RectanizerView() 39 *fRects[1].append() = SkISize::Make( in RectanizerView() 42 *fRects[2].append() = SkISize::Make(128, 128); in RectanizerView() 46 fCurRects = &fRects[0]; in RectanizerView() 143 SkTDArray<SkISize> fRects[3]; member in RectanizerView 169 if (fCurRects == &fRects[0]) { in getRectsName() 171 } else if (fCurRects == &fRects[1]) { in getRectsName() 179 if (fCurRects == &fRects[0]) { in cycleRects() 180 fCurRects = &fRects[1]; in cycleRects() [all …]
|
D | SampleApp.cpp | 2400 const SkIRect* fRects; in test() member 2409 test_rects(gRecs[i].fRects, gRecs[i].fCount); in test()
|
/external/skia/src/gpu/ops/ |
D | GrNonAAFillRectOp.cpp | 78 RectInfo& info = fRects.push_back(); in NonAAFillRectOp() 91 this->setTransformedBounds(fRects[0].fRect, viewMatrix, HasAABloat::kNo, IsZeroArea::kNo); in NonAAFillRectOp() 98 str.appendf("# combined: %d\n", fRects.count()); in dumpInfo() 99 for (int i = 0; i < fRects.count(); ++i) { in dumpInfo() 100 const RectInfo& info = fRects[i]; in dumpInfo() 115 color->setToConstant(fRects[0].fColor); in getFragmentProcessorAnalysisInputs() 120 optimizations.getOverrideColorIfSet(&fRects[0].fColor); in applyPipelineOptimizations() 133 int instanceCount = fRects.count(); in onPrepareDraws() 148 tesselate(verts, vertexStride, fRects[i].fColor, &fRects[i].fViewMatrix, in onPrepareDraws() 149 fRects[i].fRect, &fRects[i].fLocalQuad); in onPrepareDraws() [all …]
|
D | GrNonAAFillRectPerspectiveOp.cpp | 100 RectInfo& info = fRects.push_back(); in NonAAFillRectPerspectiveOp() 118 str.appendf("# combined: %d\n", fRects.count()); in dumpInfo() 119 for (int i = 0; i < fRects.count(); ++i) { in dumpInfo() 120 const RectInfo& geo = fRects[0]; in dumpInfo() 135 color->setToConstant(fRects[0].fColor); in getFragmentProcessorAnalysisInputs() 140 optimizations.getOverrideColorIfSet(&fRects[0].fColor); in applyPipelineOptimizations() 158 int instanceCount = fRects.count(); in onPrepareDraws() 171 const RectInfo& info = fRects[i]; in onPrepareDraws() 202 fRects.push_back_n(that->fRects.count(), that->fRects.begin()); in onCombineIfPossible() 213 SkSTArray<1, RectInfo, true> fRects; member in NonAAFillRectPerspectiveOp
|
D | GrAAStrokeRectOp.cpp | 123 fRects.emplace_back(RectInfo{color, devOutside, devOutside, devInside, false}); in AAStrokeRectOp() 137 RectInfo& info = op->fRects.push_back(); in Make() 158 for (const auto& info : fRects) { in dumpInfo() 179 color->setToConstant(fRects[0].fColor); in getFragmentProcessorAnalysisInputs() 224 SkSTArray<1, RectInfo, true> fRects; member in AAStrokeRectOp 234 optimizations.getOverrideColorIfSet(&fRects[0].fColor); in applyPipelineOptimizations() 261 int instanceCount = fRects.count(); in onPrepareDraws() 275 const RectInfo& info = fRects[i]; in onPrepareDraws() 412 fRects.push_back_n(that->fRects.count(), that->fRects.begin()); in onCombineIfPossible()
|
/external/skia/bench/ |
D | GeometryBench.cpp | 47 SkRect fRects[2048]; member in GeoRectBench 53 for (size_t i = 0; i < SK_ARRAY_COUNT(fRects); ++i) { in onDelayedSetup() 58 fRects[i].setXYWH(x, y, w, h); in onDelayedSetup() 71 for (size_t i = 0; i < SK_ARRAY_COUNT(fRects); ++i) { in onDraw() 72 SkRect r = fRects[0]; in onDraw() 73 count += r.intersect(fRects[i]); in onDraw() 89 for (size_t i = 0; i < SK_ARRAY_COUNT(fRects); ++i) { in onDraw() 90 count += r.intersect(fRects[0], fRects[i]); in onDraw() 105 for (size_t i = 0; i < SK_ARRAY_COUNT(fRects); ++i) { in onDraw() 106 count += SkRect::Intersects(fRects[0], fRects[i]); in onDraw() [all …]
|
D | FSRectBench.cpp | 31 fRects[i].fLeft = -kMinOffset - rand.nextUScalar1() * kOffsetRange; in onDelayedSetup() 32 fRects[i].fTop = -kMinOffset - rand.nextUScalar1() * kOffsetRange; in onDelayedSetup() 33 fRects[i].fRight = W + kMinOffset + rand.nextUScalar1() * kOffsetRange; in onDelayedSetup() 34 fRects[i].fBottom = H + kMinOffset + rand.nextUScalar1() * kOffsetRange; in onDelayedSetup() 45 canvas->drawRect(fRects[i % N], paint); in onDraw() 55 SkRect fRects[N]; member in FSRectBench
|
D | RectBench.cpp | 25 SkRect fRects[N]; member in RectBench 62 fRects[i].set(SkIntToScalar(x), SkIntToScalar(y), in onDelayedSetup() 64 fRects[i].offset(offset, offset); in onDelayedSetup() 78 this->drawThisRect(canvas, fRects[i % N], paint); in onDraw() 186 canvas->drawPoints(fMode, N * 2, SkTCast<SkPoint*>(fRects), paint); in onDraw() 264 canvas->drawPoints(fMode, N * 2, SkTCast<SkPoint*>(fRects), paint); in onDraw()
|
D | AlternatingColorPatternBench.cpp | 86 SkRect fRects[NUM_DRAWS]; member in AlternatingColorPatternBench 125 fRects[count].set(SkIntToScalar(x), SkIntToScalar(y), in onDelayedSetup() 155 canvas->drawRect(fRects[j], paint); in onDraw()
|
/external/skia/src/gpu/ |
D | GrDrawOpAtlas.cpp | 67 , fRects(nullptr) in Plot() 80 delete fRects; in ~Plot() 86 if (!fRects) { in addSubImage() 87 fRects = GrRectanizer::Factory(fWidth, fHeight); in addSubImage() 90 if (!fRects->addRect(width, height, loc)) { in addSubImage() 144 if (fRects) { in resetRects() 145 fRects->reset(); in resetRects()
|
D | GrDrawOpAtlas.h | 253 GrRectanizer* fRects; variable
|
/external/skia/example/ |
D | SkiaSDLExample.cpp | 37 SkTArray<SkRect> fRects; member 53 SkRect& rect = state->fRects.back(); in handle_events() 60 state->fRects.push_back() = SkRect::MakeLTRB(SkIntToScalar(event.button.x), in handle_events() 242 for (int i = 0; i < state.fRects.count(); i++) { 244 canvas->drawRect(state.fRects[i], paint);
|