| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |