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

Unified Diff: tools/skdiff_main.cpp

Issue 1788643003: Remove uses of SkImageDecoder from skdiff (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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/skdiff_image.cpp ('k') | tools/skdiff_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skdiff_main.cpp
diff --git a/tools/skdiff_main.cpp b/tools/skdiff_main.cpp
index 0dca407bf01fd9237f971e64e1788e16b19d1301..8b56ea5f8ecc8e844ae5dfbf17a039db494b4055 100644
--- a/tools/skdiff_main.cpp
+++ b/tools/skdiff_main.cpp
@@ -10,7 +10,6 @@
#include "SkBitmap.h"
#include "SkData.h"
#include "SkForceLinking.h"
scroggo 2016/03/11 19:56:13 I assume this is no longer necessary
msarett 2016/03/11 19:58:08 I recently realized that force linking is also use
scroggo 2016/03/11 20:00:34 Really? I added force linking because we auto-regi
msarett 2016/03/11 20:05:47 Maybe I'm wrong... I'm certainly not an expert in
-#include "SkImageDecoder.h"
#include "SkImageEncoder.h"
#include "SkOSFile.h"
#include "SkStream.h"
@@ -349,7 +348,7 @@ static void get_bounds(DiffResource& resource, const char* name) {
SkDebugf("WARNING: couldn't read %s file <%s>\n", name, resource.fFullPath.c_str());
resource.fStatus = DiffResource::kCouldNotRead_Status;
} else {
- get_bitmap(fileBits, resource, SkImageDecoder::kDecodeBounds_Mode);
+ get_bitmap(fileBits, resource, true);
}
}
}
@@ -493,9 +492,8 @@ static void create_diff_images (DiffMetricProc dmp,
VERBOSE_STATUS("MATCH", ANSI_COLOR_GREEN, baseFiles[i]);
} else {
AutoReleasePixels arp(drp);
- get_bitmap(baseFileBits, drp->fBase, SkImageDecoder::kDecodePixels_Mode);
- get_bitmap(comparisonFileBits, drp->fComparison,
- SkImageDecoder::kDecodePixels_Mode);
+ get_bitmap(baseFileBits, drp->fBase, false);
+ get_bitmap(comparisonFileBits, drp->fComparison, false);
VERBOSE_STATUS("DIFFERENT", ANSI_COLOR_RED, baseFiles[i]);
if (DiffResource::kDecoded_Status == drp->fBase.fStatus &&
DiffResource::kDecoded_Status == drp->fComparison.fStatus) {
« no previous file with comments | « tools/skdiff_image.cpp ('k') | tools/skdiff_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698