Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: src/core/SkMultiPictureDraw.cpp

Issue 689673003: SkTaskGroup::batch(fn, args, N) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: pun fn pointers Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkMultiPictureDraw.h ('k') | src/core/SkTaskGroup.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkMultiPictureDraw.cpp
diff --git a/src/core/SkMultiPictureDraw.cpp b/src/core/SkMultiPictureDraw.cpp
index b59b63bffc8b3a4587b210b85f459ada52cd821d..cc75f60812b678697441bea72c2017b9bea99661 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);
}
}
« no previous file with comments | « include/core/SkMultiPictureDraw.h ('k') | src/core/SkTaskGroup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698