diff options
author | reed <reed@google.com> | 2014-10-29 15:44:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-29 15:44:25 -0700 |
commit | 67c71203a4e2e4f4be0a4e2293bec3a1bc1b07c8 (patch) | |
tree | 3117abb15818fdf8bce39dde69ebaf04fe1c140e /src | |
parent | c51add674dfb89b988a7fbc05f41838c203f9dcd (diff) |
use SkTaskGroup::batch
BUG=skia:
Review URL: https://codereview.chromium.org/688753002
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkMultiPictureDraw.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/SkMultiPictureDraw.cpp b/src/core/SkMultiPictureDraw.cpp index defa2955f4..fec272c7f6 100644 --- a/src/core/SkMultiPictureDraw.cpp +++ b/src/core/SkMultiPictureDraw.cpp @@ -87,9 +87,7 @@ void SkMultiPictureDraw::draw() { // objects until after we're finished the tasks (which have pointers to the data). SkTaskGroup group; - for (int i = 0; i < fThreadSafeDrawData.count(); ++i) { - group.add(DrawData::Draw, &fThreadSafeDrawData[i]); - } + group.batch(DrawData::Draw, fThreadSafeDrawData.begin(), fThreadSafeDrawData.count()); // 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. |