xref: /third_party/skia/tests/PathOpsThreadedCommon.cpp (revision cb93a386)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/skia/tests/
1cb93a386Sopenharmony_ci/*
2cb93a386Sopenharmony_ci * Copyright 2012 Google Inc.
3cb93a386Sopenharmony_ci *
4cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be
5cb93a386Sopenharmony_ci * found in the LICENSE file.
6cb93a386Sopenharmony_ci */
7cb93a386Sopenharmony_ci
8cb93a386Sopenharmony_ci#include "src/core/SkTaskGroup.h"
9cb93a386Sopenharmony_ci#include "tests/PathOpsExtendedTest.h"
10cb93a386Sopenharmony_ci#include "tests/PathOpsThreadedCommon.h"
11cb93a386Sopenharmony_ci
12cb93a386Sopenharmony_ciPathOpsThreadedTestRunner::~PathOpsThreadedTestRunner() {
13cb93a386Sopenharmony_ci    for (int index = 0; index < fRunnables.count(); index++) {
14cb93a386Sopenharmony_ci        delete fRunnables[index];
15cb93a386Sopenharmony_ci    }
16cb93a386Sopenharmony_ci}
17cb93a386Sopenharmony_ci
18cb93a386Sopenharmony_civoid PathOpsThreadedTestRunner::render() {
19cb93a386Sopenharmony_ci    SkTaskGroup().batch(fRunnables.count(), [&](int i) {
20cb93a386Sopenharmony_ci        (*fRunnables[i])();
21cb93a386Sopenharmony_ci    });
22cb93a386Sopenharmony_ci}
23

Indexes created Thu Nov 07 10:32:03 CST 2024