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

Unified Diff: dm/DMUtil.h

Issue 290043005: DM: find max component difference (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dm/DMUtil.cpp » ('j') | dm/DMUtil.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMUtil.h
diff --git a/dm/DMUtil.h b/dm/DMUtil.h
index 535d9f26db055667d23b503448b5947c47071404..b5b5e3203bf9b0388dc7a07efd58a37bbbf0303c 100644
--- a/dm/DMUtil.h
+++ b/dm/DMUtil.h
@@ -28,6 +28,9 @@ void AllocatePixels(const SkBitmap& reference, SkBitmap* bitmap);
// Draw picture to bitmap.
void DrawPicture(SkPicture* picture, SkBitmap* bitmap);
+// What is the maximum component difference in these bitmaps?
+unsigned MaxComponentDifference(const SkBitmap& a, const SkBitmap& b);
reed1 2014/05/16 12:30:00 For the future, it might prove useful to return 4
mtklein 2014/05/16 13:00:53 Agreed.
+
// Are these identical bitmaps?
bool BitmapsEqual(const SkBitmap& a, const SkBitmap& b);
« no previous file with comments | « no previous file | dm/DMUtil.cpp » ('j') | dm/DMUtil.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698