use SkTaskGroup::batch
BUG=skia: Review URL: https://codereview.chromium.org/688753002
This commit is contained in:
parent
c51add674d
commit
67c71203a4
@ -87,9 +87,7 @@ void SkMultiPictureDraw::draw() {
|
|||||||
// objects until after we're finished the tasks (which have pointers to the data).
|
// objects until after we're finished the tasks (which have pointers to the data).
|
||||||
|
|
||||||
SkTaskGroup group;
|
SkTaskGroup group;
|
||||||
for (int i = 0; i < fThreadSafeDrawData.count(); ++i) {
|
group.batch(DrawData::Draw, fThreadSafeDrawData.begin(), fThreadSafeDrawData.count());
|
||||||
group.add(DrawData::Draw, &fThreadSafeDrawData[i]);
|
|
||||||
}
|
|
||||||
// we deliberately don't call wait() here, since the destructor will do that, this allows us
|
// we deliberately don't call wait() here, since the destructor will do that, this allows us
|
||||||
// to continue processing gpu-data without having to wait on the cpu tasks.
|
// to continue processing gpu-data without having to wait on the cpu tasks.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user