aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkMultiPictureDraw.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-10-31 06:38:24 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-31 06:38:25 -0700
commit2100c5ed7a5e5470a04e7af7309d8bd3fc4249f7 (patch)
treeaaaaa5ac4c540c6d7f5bc26e88c850d18c0fb7ca /src/core/SkMultiPictureDraw.cpp
parentd8aa7b74c8ef0cb8ed3f6b03beb7ee5013624372 (diff)
Turn SkTaskGroups back on.
Revert "Disable SkTaskGroup in SkMultiPictureDraw temporarily." Revert "Revert harder, removing SkTaskGroup.cpp from core temporarily." NOTREECHECKS=true BUG=skia: Review URL: https://codereview.chromium.org/687263007
Diffstat (limited to 'src/core/SkMultiPictureDraw.cpp')
-rw-r--r--src/core/SkMultiPictureDraw.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/SkMultiPictureDraw.cpp b/src/core/SkMultiPictureDraw.cpp
index 4e9c0f4338..8d2deebb93 100644
--- a/src/core/SkMultiPictureDraw.cpp
+++ b/src/core/SkMultiPictureDraw.cpp
@@ -86,16 +86,10 @@ void SkMultiPictureDraw::draw() {
// we place the taskgroup after the MPDReset, to ensure that we don't delete the DrawData
// objects until after we're finished the tasks (which have pointers to the data).
-#if 0
SkTaskGroup group;
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.
-#else
- for (int i = 0; i < fThreadSafeDrawData.count(); i++) {
- DrawData::Draw(&fThreadSafeDrawData[i]);
- }
-#endif
const int count = fGPUDrawData.count();
if (0 == count) {