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

Unified Diff: experimental/skpdiff/main.cpp

Issue 18176005: add point of interest API (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: constant zero buffer Created 7 years, 6 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 | « experimental/skpdiff/diff_pixels.cl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/skpdiff/main.cpp
diff --git a/experimental/skpdiff/main.cpp b/experimental/skpdiff/main.cpp
index e5b8faea3aa3db30b3ccd554311179f333ab8cce..b9d533df84be954b121c620fc8539bb3d1ac48e2 100644
--- a/experimental/skpdiff/main.cpp
+++ b/experimental/skpdiff/main.cpp
@@ -11,6 +11,7 @@
#include "SkCommandLineFlags.h"
#include "SkGraphics.h"
+#include "SkPoint.h"
#include "SkOSFile.h"
#include "SkString.h"
#include "SkTArray.h"
@@ -83,7 +84,7 @@ static void diff_directories(const char baselinePath[], const char testPath[], S
SkTDArray<int> queuedDiffIDs;
for (int baselineIndex = 0; baselineIndex < baselineEntries.count(); baselineIndex++) {
const char* baseFilename = baselineEntries[baselineIndex].c_str();
- SkDebugf("%s\n", baseFilename);
+ SkDebugf("\n%s\n", baseFilename);
// Find the real location of each file to compare
SkString baselineFile = SkOSPath::SkPathJoin(baselinePath, baseFilename);
@@ -96,6 +97,8 @@ static void diff_directories(const char baselinePath[], const char testPath[], S
if (diffID >= 0) {
queuedDiffIDs.push(diffID);
SkDebugf("Result: %f\n", differ->getResult(diffID));
+ SkDebugf("POI Count: %i\n", differ->getPointsOfInterestCount(diffID));
+ differ->deleteDiff(diffID);
}
} else {
SkDebugf("Baseline file \"%s\" has no corresponding test file\n", baselineFile.c_str());
@@ -130,12 +133,14 @@ static void diff_patterns(const char baselinePattern[], const char testPattern[]
for (int entryIndex = 0; entryIndex < baselineEntries.count(); entryIndex++) {
const char* baselineFilename = baselineEntries[entryIndex].c_str();
const char* testFilename = testEntries [entryIndex].c_str();
- SkDebugf("%s %s\n", baselineFilename, testFilename);
+ SkDebugf("\n%s %s\n", baselineFilename, testFilename);
int diffID = differ->queueDiffOfFile(baselineFilename, testFilename);
if (diffID >= 0) {
queuedDiffIDs.push(diffID);
SkDebugf("Result: %f\n", differ->getResult(diffID));
+ SkDebugf("POI Count: %i\n", differ->getPointsOfInterestCount(diffID));
+ differ->deleteDiff(diffID);
}
}
}
« no previous file with comments | « experimental/skpdiff/diff_pixels.cl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698