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

Unified Diff: src/utils/SkBitmapChecksummer.h

Issue 14170010: rename SkBitmapChecksummer as SkBitmapHasher, and prepare for it to possibly use (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: sync_to_r8638 Created 7 years, 8 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 | « gyp/utils.gyp ('k') | src/utils/SkBitmapChecksummer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkBitmapChecksummer.h
===================================================================
--- src/utils/SkBitmapChecksummer.h (revision 8638)
+++ src/utils/SkBitmapChecksummer.h (working copy)
@@ -1,37 +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.
- */
-
-#ifndef SkBitmapChecksummer_DEFINED
-#define SkBitmapChecksummer_DEFINED
-
-#include "SkBitmap.h"
-#include "SkBitmapTransformer.h"
-
-/**
- * Static class that can generate checksums from SkBitmaps.
- */
-class SkBitmapChecksummer {
-public:
- /**
- * Returns a 64-bit checksum of the pixels in this bitmap.
- *
- * If this is unable to compute the checksum for some reason,
- * it returns 0.
- *
- * Note: depending on the bitmap config, we may need to create an
- * intermediate SkBitmap and copy the pixels over to it... so in some
- * cases, performance and memory usage can suffer.
- */
- static uint64_t Compute64(const SkBitmap& bitmap);
-
-private:
- static uint64_t Compute64Internal(const SkBitmap& bitmap,
- const SkBitmapTransformer& transformer);
-};
-
-#endif
« no previous file with comments | « gyp/utils.gyp ('k') | src/utils/SkBitmapChecksummer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698