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

Side by Side Diff: perf/templates/clusters.html

Issue 736703002: Take the sk.get out of query-sk. (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 6 years, 1 month 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 | « perf/res/js/logic.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Skia Performance Monitoring | Clusters</title> 4 <title>Skia Performance Monitoring | Clusters</title>
5 5
6 {{template "header.html" .}} 6 {{template "header.html" .}}
7 7
8 <link href="/res/imp/cluster.html" rel="import" /> 8 <link href="/res/imp/cluster.html" rel="import" />
9 <link href="/res/imp/sort.html" rel="import" /> 9 <link href="/res/imp/sort.html" rel="import" />
10 10
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 }); 95 });
96 96
97 $$$('#start').addEventListener('click', function(){ 97 $$$('#start').addEventListener('click', function(){
98 beginClustering( 98 beginClustering(
99 $$$('#_k').value, $$$('#_stddev').value, $$$('#_issue').value, $$$ ('query-sk').currentQuery); 99 $$$('#_k').value, $$$('#_stddev').value, $$$('#_issue').value, $$$ ('query-sk').currentQuery);
100 }); 100 });
101 101
102 $$('input[name="sort"]').forEach(function(ele) { 102 $$('input[name="sort"]').forEach(function(ele) {
103 ele.addEventListener('click', sort); 103 ele.addEventListener('click', sort);
104 }); 104 });
105
106 sk.get('/tiles/0/-1/').then(JSON.parse).then(function(json){
107 $$$('query-sk').setParamSet(json.paramset);
108 });
109
105 }; 110 };
106 111
107 // TODO(jcgregorio) Make this into a Promise. 112 // TODO(jcgregorio) Make this into a Promise.
108 if (document.readyState != 'loading') { 113 if (document.readyState != 'loading') {
109 onLoad(); 114 onLoad();
110 } else { 115 } else {
111 window.addEventListener('load', onLoad); 116 window.addEventListener('load', onLoad);
112 } 117 }
113 118
114 })(); 119 })();
115 </script> 120 </script>
116 </body> 121 </body>
117 </html> 122 </html>
OLDNEW
« no previous file with comments | « perf/res/js/logic.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698