Home
last modified time | relevance | path

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

/external/skia/gm/
Dcomplexclip2.cpp67 fRects[0].setLTRB(xB, yB, xE, yE); in onOnceBeforeDraw()
68 fRRects[0].setRectXY(fRects[0], 7, 7); in onOnceBeforeDraw()
69 fPaths[0] = SkPath::RRect(fRects[0], 5, 5); in onOnceBeforeDraw()
72 fRects[1].setLTRB(xA, yA, xD, yD); in onOnceBeforeDraw()
73 fRRects[1].setRectXY(fRects[1], 7, 7); in onOnceBeforeDraw()
74 fPaths[1] = SkPath::RRect(fRects[1], 5, 5); in onOnceBeforeDraw()
77 fRects[2].setLTRB(xC, yA, xF, yD); in onOnceBeforeDraw()
78 fRRects[2].setRectXY(fRects[2], 7, 7); in onOnceBeforeDraw()
79 fPaths[2] = SkPath::RRect(fRects[2], 5, 5); in onOnceBeforeDraw()
82 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/tools/viewer/
DRectanizerSlide.cpp35 fRects[i].reserve(kNumRandRects); in RectanizerSlide()
41 *fRects[0].append() = SkISize::Make(random.nextRangeU(kMinRectSize, kMaxRectSize), in RectanizerSlide()
43 *fRects[1].append() = SkISize::Make( in RectanizerSlide()
46 *fRects[2].append() = SkISize::Make(128, 128); in RectanizerSlide()
50 fCurRects = &fRects[0]; in RectanizerSlide()
139 SkTDArray<SkISize> fRects[3]; member in RectanizerSlide
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/skia/bench/
DGeometryBench.cpp49 SkRect fRects[2048]; member in GeoRectBench
55 for (size_t i = 0; i < std::size(fRects); ++i) { in onDelayedSetup()
60 fRects[i].setXYWH(x, y, w, h); in onDelayedSetup()
73 for (size_t i = 0; i < std::size(fRects); ++i) { in onDraw()
74 SkRect r = fRects[0]; in onDraw()
75 count += r.intersect(fRects[i]); in onDraw()
91 for (size_t i = 0; i < std::size(fRects); ++i) { in onDraw()
92 count += r.intersect(fRects[0], fRects[i]); in onDraw()
107 for (size_t i = 0; i < std::size(fRects); ++i) { in onDraw()
108 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.cpp62 SkRect fRects[kRectCount]; member in BulkRectBench
101 batch[i].fDstRect = fRects[i]; in drawImagesBatch()
124 canvas->drawImageRect(fImages[imageIndex].get(), srcRect, fRects[i], in drawImagesRef()
139 batch[i].fRect = fRects[i]; in drawSolidColorsBatch()
166 canvas->drawRect(fRects[i], paint); in drawSolidColorsRef()
168 canvas->experimental_DrawEdgeAAQuad(fRects[i], nullptr, SkCanvas::kAll_QuadAAFlags, in drawSolidColorsRef()
194 fRects[i].setXYWH(x, y, w, h); in onDelayedSetup()
205 fRects[i].setXYWH(x, y, w, h); in onDelayedSetup()
210 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()
DVertBench.cpp174 SkRect fRects[N]; member in AtlasBench
211 fRects[i] = SkRect::MakeXYWH(rand.nextF() * (imageW - 8), in onDelayedSetup()
228 canvas->drawAtlas(fAtlas.get(), fXforms, fRects, colors, N, SkBlendMode::kModulate, in onDraw()
/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/bench/graphite/
DIntersectionTreeBench.cpp33 fRects = fAlignedAllocator.makeArray<Rect>(fRectCount); in onDelayedSetup()
35 fRects[i] = rects[i]; in onDelayedSetup()
50 Rect* rects = fRects; in doBench()
63 if (collided == fRects) { in doBench()
74 Rect* fRects; member in skgpu::graphite::IntersectionTreeBench
DBoundsManagerBench.cpp41 fRects = fAlignedAllocator.makeArray<Rect>(fRectCount); in onDelayedSetup()
43 fRects[i] = rects[i]; in onDelayedSetup()
63 const Rect& drawBounds = fRects[i]; in doBench()
79 Rect* fRects; member in skgpu::graphite::BoundsManagerBench
/external/skia/src/gpu/graphite/geom/
DBoundsManager.h79 SkASSERT(fRects.count() == fOrders.count()); in getMostRecentDraw()
84 for (const Rect& r : fRects.items()) { in getMostRecentDraw()
94 fRects.push_back(bounds); in recordDraw()
99 fRects.reset(); in reset()
103 int count() const { return fRects.count(); } in count()
107 for (const Rect& r : fRects.items()) { in replayDraws()
116 SkTBlockList<Rect> fRects{16, SkBlockAllocator::GrowthPolicy::kFibonacci};
/external/skia/tests/graphite/
DIntersectionTreeTest.cpp17 for (const SkRect& r : fRects) { in add()
22 fRects.push_back(rect); in add()
27 std::vector<SkRect> fRects; member in skgpu::graphite::SimpleIntersectionTree
/external/skia/modules/sksg/src/
DSkSGInvalidationController.cpp28 fRects.push_back(*rect); in inval()
33 fRects.clear(); in reset()
/external/skia/src/gpu/ganesh/ops/
DStrokeRectOp.cpp433fRects.emplace_back(RectInfo{color, devOutside, devOutside, devInside, devHalfStrokeSize, false}); in AAStrokeRectOp()
477 RectInfo& info = fRects.push_back(infoExceptColor); in AAStrokeRectOp()
506 &fRects.back().fColor, &fWideColor); in finalize()
533 for (const auto& info : fRects) { in onDumpInfo()
576 SkSTArray<1, RectInfo, true> fRects; member in skgpu::ganesh::StrokeRectOp::__anonb4110f3b0111::AAStrokeRectOp
632 int instanceCount = fRects.size(); in onPrepareDraws()
651 const RectInfo& info = fRects[i]; in onPrepareDraws()
791 fRects.push_back_n(that->fRects.size(), that->fRects.begin()); in onCombineIfPossible()
/external/skia/tests/
DSkSLInterpreterTest.cpp499 struct ManyRects { int fNumRects; RectAndColor fRects[4]; }; in DEF_TEST() member
646 expected.fRects[i].fRect = gRects[i]; in DEF_TEST()
648 expected.fRects[i].fColor = { c, c, c, c }; in DEF_TEST()