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

Side by Side Diff: dm/DMUtil.h

Issue 563723005: Add --matrix to DM, to play around with and maybe use on a bot. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « dm/DMPipeTask.cpp ('k') | dm/DMUtil.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 #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
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
OLDNEW
« no previous file with comments | « dm/DMPipeTask.cpp ('k') | dm/DMUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698