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

Unified Diff: experimental/skpdiff/SkPMetric.cpp

Issue 18132007: add diff viewer website (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: test -> actual Created 7 years, 5 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 | « no previous file | experimental/skpdiff/diff_viewer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/skpdiff/SkPMetric.cpp
diff --git a/experimental/skpdiff/SkPMetric.cpp b/experimental/skpdiff/SkPMetric.cpp
index 710b18bd2005b2efd3494126aa856eb3e93dee18..a9628539b556584a888d2cbe1443692261aeba4c 100644
--- a/experimental/skpdiff/SkPMetric.cpp
+++ b/experimental/skpdiff/SkPMetric.cpp
@@ -379,7 +379,7 @@ float pmetric(const ImageLAB* baselineLAB, const ImageLAB* testLAB, SkTDArray<Sk
SkDELETE_ARRAY(cyclesPerDegree);
SkDELETE_ARRAY(contrast);
SkDELETE_ARRAY(thresholdFactorFrequency);
- return (double)failures;
+ return 1.0 - (double)failures / (width * height);
}
const char* SkPMetric::getName() {
« no previous file with comments | « no previous file | experimental/skpdiff/diff_viewer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698