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

Unified Diff: tools/imagediff/image_diff_png.h

Issue 21202003: Move simple png encoding for image_diff into tools/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android_webview third_party_whitelist.txt Created 7 years, 4 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 | « tools/imagediff/image_diff.gyp ('k') | tools/imagediff/image_diff_png.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/imagediff/image_diff_png.h
diff --git a/webkit/support/webkit_support_gfx.h b/tools/imagediff/image_diff_png.h
similarity index 62%
rename from webkit/support/webkit_support_gfx.h
rename to tools/imagediff/image_diff_png.h
index f78f8c5726603071e17da3bef672d81d889f1ad0..2e6b155f774e4fd9c0ce3f65fca05a401ded16a7 100644
--- a/webkit/support/webkit_support_gfx.h
+++ b/tools/imagediff/image_diff_png.h
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_SUPPORT_WEBKIT_SUPPORT_GFX_H_
-#define WEBKIT_SUPPORT_WEBKIT_SUPPORT_GFX_H_
+#ifndef TOOLS_IMAGEDIFF_IMAGE_DIFF_PNG_H_
+#define TOOLS_IMAGEDIFF_IMAGE_DIFF_PNG_H_
#include <string>
#include <vector>
-namespace webkit_support {
+namespace image_diff_png {
// Decode a PNG into an RGBA pixel array.
bool DecodePNG(const unsigned char* input, size_t input_size,
@@ -30,14 +30,6 @@ bool EncodeBGRAPNG(const unsigned char* input,
bool discard_transparency,
std::vector<unsigned char>* output);
-bool EncodeBGRAPNGWithChecksum(const unsigned char* input,
- int width,
- int height,
- int row_byte_width,
- bool discard_transparency,
- const std::string& checksum,
- std::vector<unsigned char>* output);
+} // namespace image_diff_png
-} // namespace webkit_support
-
-#endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_GFX_H_
+#endif // TOOLS_IMAGEDIFF_IMAGE_DIFF_PNG_H_
« no previous file with comments | « tools/imagediff/image_diff.gyp ('k') | tools/imagediff/image_diff_png.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698