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

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

Issue 655633003: Revert of add ganesh checkbox to skfiddle interface (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 b04ef7fb13b1bd978813cc6e99600bb3cb1c8107..b4643ac221af9f52998e7aa53f84fa24c4bfd03f 100644
--- a/experimental/webtry/res/js/webtry.js
+++ b/experimental/webtry/res/js/webtry.js
@@ -25,7 +25,6 @@
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');
@@ -216,7 +215,6 @@
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;
@@ -295,14 +293,7 @@
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,
- 'gpu': gpu.checked
- }));
+ req.send(JSON.stringify({'code': editor.getValue(), 'width': parseInt(imageWidth.value), 'height': parseInt(imageHeight.value), 'name': workspaceName, 'source': sourceId}));
}
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