9432c0c284
- adjust PMetric output to be percentage R=borenet@google.com, bsalomon@google.com Review URL: https://codereview.chromium.org/18132007 git-svn-id: http://skia.googlecode.com/svn/trunk@9942 2bbb7eff-a529-9590-31e7-b0007b416f81
22 lines
566 B
JavaScript
22 lines
566 B
JavaScript
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;
|
|
}
|
|
} |