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

Unified Diff: tools/imagediff/image_diff.cc

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/DEPS ('k') | tools/imagediff/image_diff.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/imagediff/image_diff.cc
diff --git a/tools/imagediff/image_diff.cc b/tools/imagediff/image_diff.cc
index 5aa4eef3819efcee921a8d1c7b84fa7d0a880f59..8d31795446aad13d15529fa403318b65eb99bdb2 100644
--- a/tools/imagediff/image_diff.cc
+++ b/tools/imagediff/image_diff.cc
@@ -23,7 +23,7 @@
#include "base/safe_numerics.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
-#include "webkit/support/webkit_support_gfx.h"
+#include "tools/imagediff/image_diff_png.h"
#if defined(OS_WIN)
#include "windows.h"
@@ -80,7 +80,7 @@ class Image {
if (fread(source.get(), 1, byte_length, stdin) != byte_length)
return false;
- if (!webkit_support::DecodePNG(source.get(), byte_length,
+ if (!image_diff_png::DecodePNG(source.get(), byte_length,
&data_, &w_, &h_)) {
Clear();
return false;
@@ -105,7 +105,7 @@ class Image {
file_util::CloseFile(f);
- if (!webkit_support::DecodePNG(&compressed[0], compressed.size(),
+ if (!image_diff_png::DecodePNG(&compressed[0], compressed.size(),
&data_, &w_, &h_)) {
Clear();
return false;
@@ -315,7 +315,7 @@ int DiffImages(const base::FilePath& file1, const base::FilePath& file2,
return kStatusSame;
std::vector<unsigned char> png_encoding;
- webkit_support::EncodeRGBAPNG(
+ image_diff_png::EncodeRGBAPNG(
diff_image.data(), diff_image.w(), diff_image.h(),
diff_image.w() * 4, &png_encoding);
if (file_util::WriteFile(out_file,
« no previous file with comments | « tools/imagediff/DEPS ('k') | tools/imagediff/image_diff.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698