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

Side by Side Diff: gm/rebaseline_server/static/loader.js

Issue 193073003: rebaseline_server: disable image magnifier, for huge UI speedup (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « gm/rebaseline_server/static/diff_viewer.js ('k') | gm/rebaseline_server/static/view.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Loader: 2 * Loader:
3 * Reads GM result reports written out by results.py, and imports 3 * Reads GM result reports written out by results.py, and imports
4 * them into $scope.extraColumnHeaders and $scope.imagePairs . 4 * them into $scope.extraColumnHeaders and $scope.imagePairs .
5 */ 5 */
6 var Loader = angular.module( 6 var Loader = angular.module(
7 'Loader', 7 'Loader',
8 ['ConstantsModule', 'diff_viewer'] 8 ['ConstantsModule']
9 ); 9 );
10 10
11 Loader.directive( 11 Loader.directive(
12 'resultsUpdatedCallbackDirective', 12 'resultsUpdatedCallbackDirective',
13 ['$timeout', 13 ['$timeout',
14 function($timeout) { 14 function($timeout) {
15 return function(scope, element, attrs) { 15 return function(scope, element, attrs) {
16 if (scope.$last) { 16 if (scope.$last) {
17 $timeout(function() { 17 $timeout(function() {
18 scope.resultsUpdatedCallback(); 18 scope.resultsUpdatedCallback();
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 */ 785 */
786 $scope.getImageDiffRelativeUrl = function(imagePair) { 786 $scope.getImageDiffRelativeUrl = function(imagePair) {
787 var before = 787 var before =
788 imagePair[constants.KEY__IMAGE_A_URL] + "-vs-" + 788 imagePair[constants.KEY__IMAGE_A_URL] + "-vs-" +
789 imagePair[constants.KEY__IMAGE_B_URL]; 789 imagePair[constants.KEY__IMAGE_B_URL];
790 return before.replace(/[^\w\-]/g, "_") + ".png"; 790 return before.replace(/[^\w\-]/g, "_") + ".png";
791 } 791 }
792 792
793 } 793 }
794 ); 794 );
OLDNEW
« no previous file with comments | « gm/rebaseline_server/static/diff_viewer.js ('k') | gm/rebaseline_server/static/view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698