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

Unified Diff: src/utils/SkCityHash.h

Issue 15060008: Re-land r9059 with empty cityhash.gyp, instead of deleted cityhash.gyp (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: 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
« no previous file with comments | « src/utils/SkBitmapHasher.cpp ('k') | src/utils/SkCityHash.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkCityHash.h
===================================================================
--- src/utils/SkCityHash.h (revision 9063)
+++ src/utils/SkCityHash.h (working copy)
@@ -1,47 +0,0 @@
-/*
- * Copyright 2012 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/**
- * Hash functions, using the CityHash algorithm.
- *
- * Results are guaranteed to be:
- * 1. consistent across revisions of the library (for a given set
- * of bytes, the checksum generated at one revision of the Skia
- * library will match the one generated on any other revision of
- * the Skia library)
- * 2. consistent across platforms (for a given
- * set of bytes, the checksum generated on one platform will
- * match the one generated on any other platform)
- */
-
-#ifndef SkCityHash_DEFINED
-#define SkCityHash_DEFINED
-
-#include "SkTypes.h"
-
-class SkCityHash : SkNoncopyable {
-public:
- /**
- * Compute a 32-bit checksum for a given data block.
- *
- * @param data Memory address of the data block to be processed.
- * @param size Size of the data block in bytes.
- * @return checksum result
- */
- static uint32_t Compute32(const char *data, size_t size);
-
- /**
- * Compute a 64-bit checksum for a given data block.
- *
- * @param data Memory address of the data block to be processed.
- * @param size Size of the data block in bytes.
- * @return checksum result
- */
- static uint64_t Compute64(const char *data, size_t size);
-};
-
-#endif
« no previous file with comments | « src/utils/SkBitmapHasher.cpp ('k') | src/utils/SkCityHash.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698