diff options
author | mtklein <mtklein@chromium.org> | 2014-10-29 14:17:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-29 14:17:13 -0700 |
commit | e71cd54ed4d83310d718490d40643c35b622b9f5 (patch) | |
tree | 121583f7bf0092c4d082bc6f50c789ceff8bef96 /src/core/SkMultiPictureDraw.cpp | |
parent | 6838d854a87e79f1fbb7b89b9f395155ad44dc0a (diff) |
SkTaskGroup::batch(fn, args, N)
Porting QuiltTask isn't important in itself; this is mostly an API feeler.
BUG=skia:
Review URL: https://codereview.chromium.org/689673003
Diffstat (limited to 'src/core/SkMultiPictureDraw.cpp')
-rw-r--r-- | src/core/SkMultiPictureDraw.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkMultiPictureDraw.cpp b/src/core/SkMultiPictureDraw.cpp index 2690e8f7c0..defa2955f4 100644 --- a/src/core/SkMultiPictureDraw.cpp +++ b/src/core/SkMultiPictureDraw.cpp @@ -58,9 +58,9 @@ void SkMultiPictureDraw::reset() { DrawData::Reset(fThreadSafeDrawData); } -void SkMultiPictureDraw::add(SkCanvas* canvas, +void SkMultiPictureDraw::add(SkCanvas* canvas, const SkPicture* picture, - const SkMatrix* matrix, + const SkMatrix* matrix, const SkPaint* paint) { if (NULL == canvas || NULL == picture) { SkDEBUGFAIL("parameters to SkMultiPictureDraw::add should be non-NULL"); @@ -88,7 +88,7 @@ void SkMultiPictureDraw::draw() { SkTaskGroup group; for (int i = 0; i < fThreadSafeDrawData.count(); ++i) { - group.add(DrawData::Run, &fThreadSafeDrawData[i]); + group.add(DrawData::Draw, &fThreadSafeDrawData[i]); } // 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. @@ -127,7 +127,7 @@ void SkMultiPictureDraw::draw() { // TODO: another optimization would be to make a first pass to // lock any required layer that is already in the atlas GrLayerHoister::FindLayersToAtlas(context, data.fPicture, - clipBounds, + clipBounds, &atlasedNeedRendering, &atlasedRecycled); } } |