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

Unified Diff: experimental/webtry/res/js/webtry.js

Issue 638003008: Re-land ganesh checkbox. I needed to increase the size of the address (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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/webtry/main.cpp ('k') | experimental/webtry/scripts/fiddle_gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webtry/res/js/webtry.js
diff --git a/experimental/webtry/res/js/webtry.js b/experimental/webtry/res/js/webtry.js
index b4643ac221af9f52998e7aa53f84fa24c4bfd03f..b04ef7fb13b1bd978813cc6e99600bb3cb1c8107 100644
--- a/experimental/webtry/res/js/webtry.js
+++ b/experimental/webtry/res/js/webtry.js
@@ -25,6 +25,7 @@
var code = document.getElementById('code');
var output = document.getElementById('output');
var stdout = document.getElementById('stdout');
+ var gpu = document.getElementById('use-gpu');
var img = document.getElementById('img');
var imageWidth = document.getElementById('image-width');
var imageHeight = document.getElementById('image-height');
@@ -215,6 +216,7 @@
img.src = '/i/'+body.hash+'.png';
imageWidth.value = body.width;
imageHeight.value = body.height;
+ gpu.checked = body.gpu;
sourceSelectByID(body.source);
if (permalink) {
permalink.href = '/c/' + body.hash;
@@ -293,7 +295,14 @@
req.overrideMimeType('application/json');
req.open('POST', '/', true);
req.setRequestHeader('content-type', 'application/json');
- req.send(JSON.stringify({'code': editor.getValue(), 'width': parseInt(imageWidth.value), 'height': parseInt(imageHeight.value), 'name': workspaceName, 'source': sourceId}));
+ req.send(JSON.stringify({
+ 'code': editor.getValue(),
+ 'width': parseInt(imageWidth.value),
+ 'height': parseInt(imageHeight.value),
+ 'name': workspaceName,
+ 'source': sourceId,
+ 'gpu': gpu.checked
+ }));
}
run.addEventListener('click', onSubmitCode);
« no previous file with comments | « experimental/webtry/main.cpp ('k') | experimental/webtry/scripts/fiddle_gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698