Flutter Engine
The Flutter Engine
third_party
skia
tests
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
8
#include "
src/core/SkTaskGroup.h
"
9
#include "
tests/PathOpsThreadedCommon.h
"
10
11
#include <functional>
12
13
PathOpsThreadedTestRunner::~PathOpsThreadedTestRunner
() {
14
for
(
int
index = 0; index <
fRunnables
.
size
(); index++) {
15
delete
fRunnables
[index];
16
}
17
}
18
19
void
PathOpsThreadedTestRunner::render
() {
20
SkTaskGroup
().
batch
(
fRunnables
.
size
(), [&](
int
i
) {
21
(*fRunnables[i])();
22
});
23
}
PathOpsThreadedCommon.h
SkTaskGroup.h
PathOpsThreadedTestRunner::render
void render()
Definition:
PathOpsThreadedCommon.cpp:19
PathOpsThreadedTestRunner::~PathOpsThreadedTestRunner
~PathOpsThreadedTestRunner()
Definition:
PathOpsThreadedCommon.cpp:13
PathOpsThreadedTestRunner::fRunnables
SkTDArray< PathOpsThreadedRunnable * > fRunnables
Definition:
PathOpsThreadedCommon.h:51
SkTDArray::size
int size() const
Definition:
SkTDArray.h:138
SkTaskGroup
Definition:
SkTaskGroup.h:20
SkTaskGroup::batch
void batch(int N, std::function< void(int)> fn)
Definition:
SkTaskGroup.cpp:24
i
int i
Definition:
fl_socket_accessible.cc:18
Generated on Sun Jun 23 2024 21:56:46 for Flutter Engine by
1.9.4