Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87566087 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "cleanup"

parents 8d5d6663 9564ff0b
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -83,16 +83,15 @@ void BM_TessellateShadows_roundrect_opaque::Run(int iters) {
    ShadowTestData shadowData;
    createShadowTestData(&shadowData);
    SkPath path;
    path.reset();
    path.addRoundRect(SkRect::MakeLTRB(0, 0, 100, 100), 5, 5);
    path.addRoundRect(SkRect::MakeWH(100, 100), 5, 5);

    StartBenchmarkTiming();
    for (int i = 0; i < iters; i++) {
        std::unique_ptr<VertexBuffer> ambient(new VertexBuffer);
        std::unique_ptr<VertexBuffer> spot(new VertexBuffer);
        tessellateShadows(shadowData, true, path, ambient.get(), spot.get());
        MicroBench::DoNotOptimize(ambient.get());
        MicroBench::DoNotOptimize(spot.get());
        VertexBuffer ambient;
        VertexBuffer spot;
        tessellateShadows(shadowData, true, path, &ambient, &spot);
        MicroBench::DoNotOptimize(&ambient);
        MicroBench::DoNotOptimize(&spot);
    }
    StopBenchmarkTiming();
}