22 const char*
onGetName()
override {
return "fullscreen_rects"; }
27 static const SkScalar kMinOffset = 0;
29 static const SkScalar kOffsetRange = kMaxOffset - kMinOffset;
30 for (
int i = 0;
i < N; ++
i) {
35 fColors[
i] = rand.
nextU() | 0xFF000000;
43 for (
int i = 0;
i < loops; ++
i) {
44 paint.setColor(fColors[
i % N]);
50 static constexpr int W = 640;
51 static constexpr int H = 480;
52 static constexpr int N = 300;
const char * onGetName() override
void onDelayedSetup() override
void onDraw(int loops, SkCanvas *canvas) override
void drawRect(const SkRect &rect, const SkPaint &paint)
SkScalar fBottom
larger y-axis bounds
SkScalar fLeft
smaller x-axis bounds
SkScalar fRight
larger x-axis bounds
SkScalar fTop
smaller y-axis bounds