Home
last modified time | relevance | path

Searched refs:fRects (Results 1 – 25 of 30) sorted by relevance

12

/external/skqp/gm/
Dcomplexclip2.cpp61 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 …]
Drects.cpp209 fRects.push_back(r); in makeRects()
215 fRects.push_back(r); in makeRects()
221 fRects.push_back(r); in makeRects()
227 fRects.push_back(r); in makeRects()
233 fRects.push_back(r); in makeRects()
249 for (int j = 0; j < fRects.count(); ++j, ++testCount) { in onDraw()
252 canvas->drawRect(fRects[j], fPaints[i]); in onDraw()
262 for (int j = 0; j < fRects.count(); ++j, ++testCount) { in onDraw()
266 canvas->drawRect(fRects[j], paint); in onDraw()
275 SkTArray<SkRect> fRects; member in skiagm::RectsGM
Dconvexpolyeffect.cpp165 fRects.addToTail(SkRect::MakeLTRB(5.f, 1.f, 30.f, 25.f)); in onOnceBeforeDraw()
167 fRects.addToTail(SkRect::MakeLTRB(5.5f, 0.5f, 29.5f, 24.5f)); in onOnceBeforeDraw()
169 fRects.addToTail(SkRect::MakeLTRB(5.25f, 0.5f, 5.75f, 24.5f)); in onOnceBeforeDraw()
170 fRects.addToTail(SkRect::MakeLTRB(5.5f, 0.5f, 29.5f, 0.75f)); in onOnceBeforeDraw()
172 fRects.addToTail(SkRect::MakeLTRB(5.55f, 0.5f, 5.75f, 24.5f)); in onOnceBeforeDraw()
173 fRects.addToTail(SkRect::MakeLTRB(5.5f, .05f, 29.5f, .25f)); in onOnceBeforeDraw()
175 fRects.addToTail(SkRect::MakeLTRB(5.05f, .55f, 5.45f, .85f)); in onOnceBeforeDraw()
177 fRects.addToTail(SkRect::MakeLTRB(100.f, 50.5f, 5.f, 0.5f)); in onOnceBeforeDraw()
237 for (RectList::Iter iter(fRects, RectList::Iter::kHead_IterStart); in onDraw()
282 RectList fRects; member in skiagm::ConvexPolyEffect
Dstringart.cpp102 SkRect fRects[N];
129 fRects[i].setXYWH(x, y, 400, 400);
140 fAnims[0]->render(canvas, &fRects[i]);
/external/skia/gm/
Dcomplexclip2.cpp68 fRects[0].setLTRB(xB, yB, xE, yE); in onOnceBeforeDraw()
69 fRRects[0].setRectXY(fRects[0], 7, 7); in onOnceBeforeDraw()
70 fPaths[0] = SkPath::RRect(fRects[0], 5, 5); in onOnceBeforeDraw()
73 fRects[1].setLTRB(xA, yA, xD, yD); in onOnceBeforeDraw()
74 fRRects[1].setRectXY(fRects[1], 7, 7); in onOnceBeforeDraw()
75 fPaths[1] = SkPath::RRect(fRects[1], 5, 5); in onOnceBeforeDraw()
78 fRects[2].setLTRB(xC, yA, xF, yD); in onOnceBeforeDraw()
79 fRRects[2].setRectXY(fRects[2], 7, 7); in onOnceBeforeDraw()
80 fPaths[2] = SkPath::RRect(fRects[2], 5, 5); in onOnceBeforeDraw()
83 fRects[3].setLTRB(xA, yC, xD, yF); in onOnceBeforeDraw()
[all …]
Dstringart.cpp108 SkRect fRects[N];
135 fRects[i].setXYWH(x, y, 400, 400);
146 fAnims[0]->render(canvas, &fRects[i]);
/external/skia/samplecode/
DSampleRectanizer.cpp33 fRects[i].setReserve(kNumRandRects); in RectanizerView()
39 *fRects[0].append() = SkISize::Make(random.nextRangeU(kMinRectSize, kMaxRectSize), in RectanizerView()
41 *fRects[1].append() = SkISize::Make( in RectanizerView()
44 *fRects[2].append() = SkISize::Make(128, 128); in RectanizerView()
48 fCurRects = &fRects[0]; in RectanizerView()
139 SkTDArray<SkISize> fRects[3]; member in RectanizerView
161 if (fCurRects == &fRects[0]) { in getRectsName()
163 } else if (fCurRects == &fRects[1]) { in getRectsName()
171 if (fCurRects == &fRects[0]) { in cycleRects()
172 fCurRects = &fRects[1]; in cycleRects()
[all …]
/external/skqp/samplecode/
DSampleRectanizer.cpp33 fRects[i].setReserve(kNumRandRects); in RectanizerView()
39 *fRects[0].append() = SkISize::Make(random.nextRangeU(kMinRectSize, kMaxRectSize), in RectanizerView()
41 *fRects[1].append() = SkISize::Make( in RectanizerView()
44 *fRects[2].append() = SkISize::Make(128, 128); in RectanizerView()
48 fCurRects = &fRects[0]; in RectanizerView()
144 SkTDArray<SkISize> fRects[3]; member in RectanizerView
166 if (fCurRects == &fRects[0]) { in getRectsName()
168 } else if (fCurRects == &fRects[1]) { in getRectsName()
176 if (fCurRects == &fRects[0]) { in cycleRects()
177 fCurRects = &fRects[1]; in cycleRects()
[all …]
/external/skqp/bench/
DGeometryBench.cpp47 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 …]
DFSRectBench.cpp31 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
DRectBench.cpp28 SkRect fRects[N]; member in RectBench
75 fRects[i].set(SkIntToScalar(x), SkIntToScalar(y), in onDelayedSetup()
77 fRects[i].offset(offset, offset); in onDelayedSetup()
100 this->drawThisRect(canvas, fRects[i % N], paint); in onDraw()
245 canvas->drawPoints(fMode, N * 2, reinterpret_cast<SkPoint*>(fRects), paint); in onDraw()
323 canvas->drawPoints(fMode, N * 2, reinterpret_cast<SkPoint*>(fRects), paint); in onDraw()
DAlternatingColorPatternBench.cpp87 SkRect fRects[NUM_DRAWS]; member in AlternatingColorPatternBench
126 fRects[count].set(SkIntToScalar(x), SkIntToScalar(y), in onDelayedSetup()
156 canvas->drawRect(fRects[j], paint); in onDraw()
/external/skia/bench/
DGeometryBench.cpp48 SkRect fRects[2048]; member in GeoRectBench
54 for (size_t i = 0; i < SK_ARRAY_COUNT(fRects); ++i) { in onDelayedSetup()
59 fRects[i].setXYWH(x, y, w, h); in onDelayedSetup()
72 for (size_t i = 0; i < SK_ARRAY_COUNT(fRects); ++i) { in onDraw()
73 SkRect r = fRects[0]; in onDraw()
74 count += r.intersect(fRects[i]); in onDraw()
90 for (size_t i = 0; i < SK_ARRAY_COUNT(fRects); ++i) { in onDraw()
91 count += r.intersect(fRects[0], fRects[i]); in onDraw()
106 for (size_t i = 0; i < SK_ARRAY_COUNT(fRects); ++i) { in onDraw()
107 count += SkRect::Intersects(fRects[0], fRects[i]); in onDraw()
[all …]
DFSRectBench.cpp31 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
DBulkRectBench.cpp61 SkRect fRects[kRectCount]; member in BulkRectBench
100 batch[i].fDstRect = fRects[i]; in drawImagesBatch()
123 canvas->drawImageRect(fImages[imageIndex].get(), srcRect, fRects[i], in drawImagesRef()
138 batch[i].fRect = fRects[i]; in drawSolidColorsBatch()
165 canvas->drawRect(fRects[i], paint); in drawSolidColorsRef()
167 canvas->experimental_DrawEdgeAAQuad(fRects[i], nullptr, SkCanvas::kAll_QuadAAFlags, in drawSolidColorsRef()
193 fRects[i].setXYWH(x, y, w, h); in onDelayedSetup()
204 fRects[i].setXYWH(x, y, w, h); in onDelayedSetup()
209 SkASSERT(SkRect::MakeWH(kWidth, kHeight).contains(fRects[i])); in onDelayedSetup()
DRectBench.cpp28 SkRect fRects[N]; member in RectBench
75 fRects[i].setXYWH(SkIntToScalar(x), SkIntToScalar(y), in onDelayedSetup()
77 fRects[i].offset(offset, offset); in onDelayedSetup()
100 this->drawThisRect(canvas, fRects[i % N], paint); in onDraw()
245 canvas->drawPoints(fMode, N * 2, reinterpret_cast<SkPoint*>(fRects), paint); in onDraw()
322 canvas->drawPoints(fMode, N * 2, reinterpret_cast<SkPoint*>(fRects), paint); in onDraw()
DAlternatingColorPatternBench.cpp87 SkRect fRects[NUM_DRAWS]; member in AlternatingColorPatternBench
125 fRects[count].setXYWH(SkIntToScalar(x), SkIntToScalar(y), in onDelayedSetup()
154 canvas->drawRect(fRects[j], paint); in onDraw()
/external/skqp/modules/sksg/include/
DSkSGInvalidationController.h33 const SkRect* begin() const { return fRects.begin(); } in begin()
34 const SkRect* end() const { return fRects.end(); } in end()
37 SkTDArray<SkRect> fRects;
/external/skia/modules/sksg/include/
DSkSGInvalidationController.h35 auto begin() const { return fRects.cbegin(); } in begin()
36 auto end() const { return fRects.cend(); } in end()
41 std::vector<SkRect> fRects;
/external/skia/modules/particles/src/
DSkParticleDrawable.cpp44 , fRects(count) in DrawAtlasArrays()
70 SkAutoTMalloc<SkRect> fRects; member
86 arrays.fRects[i].setIWH(fImage->width(), fImage->height()); in REFLECTED()
89 canvas->drawAtlas(fImage.get(), arrays.fXforms.get(), arrays.fRects.get(), in REFLECTED()
139 arrays.fRects[i] = baseRect.makeOffset(col * baseRect.width(), row * baseRect.height()); in REFLECTED()
141 canvas->drawAtlas(fImage.get(), arrays.fXforms.get(), arrays.fRects.get(), in REFLECTED()
/external/skia/example/
DSkiaSDLExample.cpp41 SkTArray<SkRect> fRects; member
57 SkRect& rect = state->fRects.back(); in handle_events()
64 state->fRects.push_back() = SkRect::MakeLTRB(SkIntToScalar(event.button.x), in handle_events()
268 for (int i = 0; i < state.fRects.count(); i++) {
270 canvas->drawRect(state.fRects[i], paint);
/external/skqp/example/
DSkiaSDLExample.cpp41 SkTArray<SkRect> fRects; member
57 SkRect& rect = state->fRects.back(); in handle_events()
64 state->fRects.push_back() = SkRect::MakeLTRB(SkIntToScalar(event.button.x), in handle_events()
268 for (int i = 0; i < state.fRects.count(); i++) {
270 canvas->drawRect(state.fRects[i], paint);
/external/skia/modules/sksg/src/
DSkSGInvalidationController.cpp28 fRects.push_back(*rect); in inval()
33 fRects.clear(); in reset()
/external/skqp/src/gpu/ops/
DGrStrokeRectOp.cpp337 fRects.emplace_back(RectInfo{color, devOutside, devOutside, devInside, false}); in AAStrokeRectOp()
364 RectInfo& info = fRects.push_back(); in AAStrokeRectOp()
388 for (const auto& info : fRects) { in dumpInfo()
409 &fRects.back().fColor); in finalize()
450 SkSTArray<1, RectInfo, true> fRects; member in __anonb1861fa80111::AAStrokeRectOp
473 int instanceCount = fRects.count(); in onPrepareDraws()
491 const RectInfo& info = fRects[i]; in onPrepareDraws()
618 fRects.push_back_n(that->fRects.count(), that->fRects.begin()); in onCombineIfPossible()
/external/skqp/src/gpu/
DGrDrawOpAtlas.cpp72 , fRects(nullptr) in Plot()
89 delete fRects; in ~Plot()
95 if (!fRects) { in addSubImage()
96 fRects = GrRectanizer::Factory(fWidth, fHeight); in addSubImage()
99 if (!fRects->addRect(width, height, loc)) { in addSubImage()
162 if (fRects) { in resetRects()
163 fRects->reset(); in resetRects()

12