/external/skia/bench/ |
FSRectBench.cpp | 32 fRects[i].fLeft = -kMinOffset - SkScalarMul(rand.nextUScalar1(), kOffsetRange); 33 fRects[i].fTop = -kMinOffset - SkScalarMul(rand.nextUScalar1(), kOffsetRange); 34 fRects[i].fRight = W + kMinOffset + SkScalarMul(rand.nextUScalar1(), kOffsetRange); 35 fRects[i].fBottom = H + kMinOffset + SkScalarMul(rand.nextUScalar1(), kOffsetRange); 46 canvas->drawRect(fRects[i % N], paint); 56 SkRect fRects[N];
|
GeometryBench.cpp | 47 SkRect fRects[2048]; 53 for (size_t i = 0; i < SK_ARRAY_COUNT(fRects); ++i) { 58 fRects[i].setXYWH(x, y, w, h); 71 for (size_t i = 0; i < SK_ARRAY_COUNT(fRects); ++i) { 72 SkRect r = fRects[0]; 73 count += r.intersect(fRects[i]); 89 for (size_t i = 0; i < SK_ARRAY_COUNT(fRects); ++i) { 90 count += r.intersect(fRects[0], fRects[i]); 105 for (size_t i = 0; i < SK_ARRAY_COUNT(fRects); ++i) [all...] |
RectBench.cpp | 26 SkRect fRects[N]; 63 fRects[i].set(SkIntToScalar(x), SkIntToScalar(y), 65 fRects[i].offset(offset, offset); 79 this->drawThisRect(canvas, fRects[i % N], paint); 191 canvas->drawPoints(fMode, N * 2, SkTCast<SkPoint*>(fRects), paint); 268 canvas->drawPoints(fMode, N * 2, SkTCast<SkPoint*>(fRects), paint);
|
AlternatingColorPatternBench.cpp | 86 SkRect fRects[NUM_DRAWS]; 130 fRects[count].set(SkIntToScalar(x), SkIntToScalar(y), 160 canvas->drawRect(fRects[j], paint);
|
/external/skia/samplecode/ |
SampleRectanizer.cpp | 31 fRects[i].setReserve(kNumRandRects); 37 *fRects[0].append() = SkISize::Make(random.nextRangeU(kMinRectSize, kMaxRectSize), 39 *fRects[1].append() = SkISize::Make( 42 *fRects[2].append() = SkISize::Make(128, 128); 46 fCurRects = &fRects[0]; 143 SkTDArray<SkISize> fRects[3]; 169 if (fCurRects == &fRects[0]) { 171 } else if (fCurRects == &fRects[1]) { 179 if (fCurRects == &fRects[0]) { 180 fCurRects = &fRects[1] [all...] |
SampleApp.cpp | [all...] |
/external/skia/gm/ |
complexclip2.cpp | 61 fRects[0].set(xB, yB, xE, yE); 62 fRRects[0].setRectXY(fRects[0], 7, 7); 63 fPaths[0].addRoundRect(fRects[0], 5, 5); 66 fRects[1].set(xA, yA, xD, yD); 67 fRRects[1].setRectXY(fRects[1], 7, 7); 68 fPaths[1].addRoundRect(fRects[1], 5, 5); 71 fRects[2].set(xC, yA, xF, yD); 72 fRRects[2].setRectXY(fRects[2], 7, 7); 73 fPaths[2].addRoundRect(fRects[2], 5, 5); 76 fRects[3].set(xA, yC, xD, yF) [all...] |
rects.cpp | 220 fRects.push_back(r); 226 fRects.push_back(r); 232 fRects.push_back(r); 238 fRects.push_back(r); 244 fRects.push_back(r); 260 for (int j = 0; j < fRects.count(); ++j, ++testCount) { 263 canvas->drawRect(fRects[j], fPaints[i]); 273 for (int j = 0; j < fRects.count(); ++j, ++testCount) { 277 canvas->drawRect(fRects[j], paint); 286 SkTArray<SkRect> fRects; [all...] |
convexpolyeffect.cpp | 139 fRects.addToTail(SkRect::MakeLTRB(5.f, 1.f, 30.f, 25.f)); 141 fRects.addToTail(SkRect::MakeLTRB(5.5f, 0.5f, 29.5f, 24.5f)); 143 fRects.addToTail(SkRect::MakeLTRB(5.25f, 0.5f, 5.75f, 24.5f)); 144 fRects.addToTail(SkRect::MakeLTRB(5.5f, 0.5f, 29.5f, 0.75f)); 146 fRects.addToTail(SkRect::MakeLTRB(5.55f, 0.5f, 5.75f, 24.5f)); 147 fRects.addToTail(SkRect::MakeLTRB(5.5f, .05f, 29.5f, .25f)); 149 fRects.addToTail(SkRect::MakeLTRB(5.05f, .55f, 5.45f, .85f)); 151 fRects.addToTail(SkRect::MakeLTRB(100.f, 50.5f, 5.f, 0.5f)); 226 for (RectList::Iter iter(fRects, RectList::Iter::kHead_IterStart); 278 RectList fRects; [all...] |
/external/skia/src/gpu/ |
GrLayerAtlas.cpp | 17 , fRects(nullptr) { 22 delete fRects; 27 fRects = GrRectanizer::Factory(width, height); 32 if (!fRects->addRect(width, height, loc)) { 42 SkASSERT(fRects); 43 fRects->reset();
|
GrBatchAtlas.cpp | 28 , fRects(nullptr) 41 delete fRects; 48 if (!fRects) { 49 fRects = GrRectanizer::Factory(fWidth, fHeight); 52 if (!fRects->addRect(width, height, loc)) { 100 if (fRects) { 101 fRects->reset();
|
GrLayerAtlas.h | 54 GrRectanizer* fRects;
|
GrBatchAtlas.h | 213 GrRectanizer* fRects;
|
/external/skia/example/ |
SkiaSDLExample.cpp | 37 SkTArray<SkRect> fRects; 53 SkRect& rect = state->fRects.back(); 60 state->fRects.push_back() = SkRect::MakeLTRB(SkIntToScalar(event.button.x), 247 for (int i = 0; i < state.fRects.count(); i++) { 249 canvas->drawRect(state.fRects[i], paint);
|