| OLD | NEW |
| 1 #ifndef DMUtil_DEFINED | 1 #ifndef DMUtil_DEFINED |
| 2 #define DMUtil_DEFINED | 2 #define DMUtil_DEFINED |
| 3 | 3 |
| 4 #include "SkBitmap.h" |
| 4 #include "SkString.h" | 5 #include "SkString.h" |
| 5 #include "gm_expectations.h" | 6 #include "gm_expectations.h" |
| 6 | 7 |
| 7 // Small free functions used in more than one place in DM. | 8 // Small free functions used in more than one place in DM. |
| 8 | 9 |
| 9 namespace DM { | 10 namespace DM { |
| 10 | 11 |
| 11 // underJoin("a", "b") -> "a_b" | 12 // underJoin("a", "b") -> "a_b" |
| 12 SkString underJoin(const char* a, const char* b); | 13 SkString underJoin(const char* a, const char* b); |
| 13 | 14 |
| 14 // png("a") -> "a.png" | 15 // png("a") -> "a.png" |
| 15 SkString png(SkString s); | 16 SkString png(SkString s); |
| 16 | 17 |
| 17 // Roughly, expectations.match(digest), but only does it if we're not ignoring t
he result. | 18 // Roughly, expectations.match(GmResultDigest(bitmap)), but calculates the diges
t lazily. |
| 18 bool meetsExpectations(const skiagm::Expectations& expectations, | 19 bool meetsExpectations(const skiagm::Expectations& expectations, const SkBitmap
bitmap); |
| 19 const skiagm::GmResultDigest& digest); | |
| 20 | 20 |
| 21 } // namespace DM | 21 } // namespace DM |
| 22 | 22 |
| 23 #endif // DMUtil_DEFINED | 23 #endif // DMUtil_DEFINED |
| OLD | NEW |