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

Side by Side Diff: tests/LazyPtrTest.cpp

Issue 684923002: MultiPictureDraw is taskgroup aware. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: actually call Reset() to free the data in each data Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « src/utils/SkTaskGroup.cpp ('k') | tests/OnceTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "Test.h" 1 #include "Test.h"
2 #include "SkLazyPtr.h" 2 #include "SkLazyPtr.h"
3 #include "SkRunnable.h"
3 #include "SkTaskGroup.h" 4 #include "SkTaskGroup.h"
4 5
5 namespace { 6 namespace {
6 7
7 struct CreateIntFromFloat { 8 struct CreateIntFromFloat {
8 CreateIntFromFloat(float val) : fVal(val) {} 9 CreateIntFromFloat(float val) : fVal(val) {}
9 int* operator()() const { return SkNEW_ARGS(int, ((int)fVal)); } 10 int* operator()() const { return SkNEW_ARGS(int, ((int)fVal)); }
10 float fVal; 11 float fVal;
11 }; 12 };
12 13
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 for (int i = 0; i < kRacers; i++) { 71 for (int i = 0; i < kRacers; i++) {
71 tg.add(racers + i); 72 tg.add(racers + i);
72 } 73 }
73 tg.wait(); 74 tg.wait();
74 75
75 for (int i = 1; i < kRacers; i++) { 76 for (int i = 1; i < kRacers; i++) {
76 REPORTER_ASSERT(r, racers[i].fSeen); 77 REPORTER_ASSERT(r, racers[i].fSeen);
77 REPORTER_ASSERT(r, racers[i].fSeen == racers[0].fSeen); 78 REPORTER_ASSERT(r, racers[i].fSeen == racers[0].fSeen);
78 } 79 }
79 } 80 }
OLDNEW
« no previous file with comments | « src/utils/SkTaskGroup.cpp ('k') | tests/OnceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698