Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
PathOpsThreadedCommon.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
10
11#include <functional>
12
14 for (int index = 0; index < fRunnables.size(); index++) {
15 delete fRunnables[index];
16 }
17}
18
20 SkTaskGroup().batch(fRunnables.size(), [&](int i) {
21 (*fRunnables[i])();
22 });
23}
SkTDArray< PathOpsThreadedRunnable * > fRunnables
int size() const
Definition SkTDArray.h:138
void batch(int N, std::function< void(int)> fn)