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

Unified Diff: experimental/skpdiff/diff_viewer.js

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 | « experimental/skpdiff/SkPMetric.cpp ('k') | experimental/skpdiff/viewer.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/skpdiff/diff_viewer.js
diff --git a/experimental/skpdiff/diff_viewer.js b/experimental/skpdiff/diff_viewer.js
new file mode 100644
index 0000000000000000000000000000000000000000..338dbdfaef4dc45e4fa09c26cf558afd28a0b42d
--- /dev/null
+++ b/experimental/skpdiff/diff_viewer.js
@@ -0,0 +1,22 @@
+function DiffViewController($scope) {
+ $scope.differs = [
+ {
+ "title": "Different Pixels"
+ },
+ {
+ "title": "Perceptual Difference"
+ }
+ ];
+ $scope.sortIndex = 1;
+ $scope.records = SkPDiffRecords.records;
+ $scope.highlight = function(differName) {
+ console.debug(differName);
+ }
+ $scope.setSortIndex = function(a) {
+ $scope.sortIndex = a;
+ }
+ $scope.sortingDiffer = function(a) {
+ console.debug($scope.sortIndex);
+ return a.diffs[$scope.sortIndex].result;
+ }
+}
« no previous file with comments | « experimental/skpdiff/SkPMetric.cpp ('k') | experimental/skpdiff/viewer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698