| 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 "SkBitmap.h" |
| 5 #include "SkCanvas.h" |
| 5 #include "SkString.h" | 6 #include "SkString.h" |
| 6 #include "gm.h" | 7 #include "gm.h" |
| 7 | 8 |
| 8 class SkBBHFactory; | 9 class SkBBHFactory; |
| 9 | 10 |
| 10 // Small free functions used in more than one place in DM. | 11 // Small free functions used in more than one place in DM. |
| 11 | 12 |
| 12 namespace DM { | 13 namespace DM { |
| 13 | 14 |
| 14 // UnderJoin("a", "b") -> "a_b" | 15 // UnderJoin("a", "b") -> "a_b" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 29 | 30 |
| 30 // Draw picture to bitmap. | 31 // Draw picture to bitmap. |
| 31 void DrawPicture(const SkPicture& picture, SkBitmap* bitmap); | 32 void DrawPicture(const SkPicture& picture, SkBitmap* bitmap); |
| 32 | 33 |
| 33 // What is the maximum component difference in these bitmaps? | 34 // What is the maximum component difference in these bitmaps? |
| 34 unsigned MaxComponentDifference(const SkBitmap& a, const SkBitmap& b); | 35 unsigned MaxComponentDifference(const SkBitmap& a, const SkBitmap& b); |
| 35 | 36 |
| 36 // Are these identical bitmaps? | 37 // Are these identical bitmaps? |
| 37 bool BitmapsEqual(const SkBitmap& a, const SkBitmap& b); | 38 bool BitmapsEqual(const SkBitmap& a, const SkBitmap& b); |
| 38 | 39 |
| 40 // Hook to modify canvas using global flag values (e.g. --matrix). |
| 41 void CanvasPreflight(SkCanvas*); |
| 42 |
| 39 } // namespace DM | 43 } // namespace DM |
| 40 | 44 |
| 41 #endif // DMUtil_DEFINED | 45 #endif // DMUtil_DEFINED |
| OLD | NEW |