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

Unified Diff: src/utils/SkBitmapHasher.h

Issue 15883004: GM: create GmResultDigest that encapsulates digest type ("bitmap-64bitMD5") and value (12345) (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: add_isValid Created 7 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
Index: src/utils/SkBitmapHasher.h
===================================================================
--- src/utils/SkBitmapHasher.h (revision 9256)
+++ src/utils/SkBitmapHasher.h (working copy)
@@ -11,12 +11,8 @@
#include "SkBitmap.h"
-// TODO(epoger): Soon, SkHashDigest will become a real class of its own,
-// and callers won't be able to assume it converts to/from a uint64_t.
-typedef uint64_t SkHashDigest;
-
/**
- * Static class that can generate an SkHashDigest from an SkBitmap.
+ * Static class that generates a uint64 hash digest from an SkBitmap.
*/
class SkBitmapHasher {
public:
@@ -30,10 +26,10 @@
* intermediate SkBitmap and copy the pixels over to it... so in some
* cases, performance and memory usage can suffer.
*/
- static bool ComputeDigest(const SkBitmap& bitmap, SkHashDigest *result);
+ static bool ComputeDigest(const SkBitmap& bitmap, uint64_t *result);
private:
- static bool ComputeDigestInternal(const SkBitmap& bitmap, SkHashDigest *result);
+ static bool ComputeDigestInternal(const SkBitmap& bitmap, uint64_t *result);
};
#endif
« no previous file with comments | « gm/tests/outputs/pipe-playback-failure/output-expected/json-summary.txt ('k') | src/utils/SkBitmapHasher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698