Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit b195c62

Browse files
author
George Wright
committed
formatting
1 parent 5a06322 commit b195c62

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

flow/display_list_benchmarks.cc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ class MetalCanvasProvider : public CanvasProvider {
7676
};
7777

7878
// Draw a series of diagonal lines across a square canvas of width/height of
79-
// the length requested. The lines will start from the top left corner to the bottom
80-
// right corner, and move from left to right (at the top) and from right to left
81-
// (at the bottom) until 10,000 lines are drawn.
79+
// the length requested. The lines will start from the top left corner to the
80+
// bottom right corner, and move from left to right (at the top) and from right
81+
// to left (at the bottom) until 10,000 lines are drawn.
8282
//
8383
// The resulting image will be an hourglass shape.
8484
template <class T>
@@ -142,7 +142,7 @@ void DrawRect(benchmark::State& state) {
142142
// draw non-axis-aligned rects with scalar position and size
143143
builder.drawRect(rect);
144144
rect.inset(inset, inset);
145-
if (rect.width()==5) {
145+
if (rect.width() == 5) {
146146
rect = SkRect::MakeLTRB(0, 0, length, length);
147147
}
148148
}
@@ -233,18 +233,18 @@ void DrawCircle(benchmark::State& state) {
233233
size_t length = state.range(0);
234234
T canvas_provider(length, length);
235235
auto canvas = canvas_provider.GetSurface()->getCanvas();
236-
SkPoint center = SkPoint::Make(length/2.0f, length/2.0f);
237-
SkScalar radius = length/2.0f;
236+
SkPoint center = SkPoint::Make(length / 2.0f, length / 2.0f);
237+
SkScalar radius = length / 2.0f;
238238
for (size_t i = 0; i < 5000; i++) {
239239
builder.drawCircle(center, radius);
240240
radius -= 0.5f;
241241
if (radius <= 0) {
242-
radius = length/2.0f;
242+
radius = length / 2.0f;
243243
}
244244
}
245245
auto displaylist = builder.Build();
246246

247-
state.counters["Blah"] = 16;
247+
state.counters["Blah"] = 16;
248248
// We only want to time the actual rasterization.
249249
while (state.KeepRunning()) {
250250
displaylist->RenderTo(canvas);

0 commit comments

Comments
 (0)