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

Side by Side Diff: third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/proxy-mutate.js

Issue 2041193005: [compositorworker] compositor proxy mutation updates underlying layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-upstream-registration
Patch Set: Use RAII pattern Created 4 years, 6 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
OLDNEW
1 onmessage = function(msg) { 1 self.importScripts('worker-common.js');
2 var proxy = msg.data[0]; 2
3 var attrib = msg.data[1]; 3 self.onmessage = function(msg) {
4 var proxy = msg.data[0];
5 var attrib = msg.data[1];
6
7 awaitProxyInit(proxy).then((proxy) => {
4 try { 8 try {
5 if (proxy.supports(attrib)) { 9 if (proxy.supports(attrib)) {
6 proxy[attrib] = 0; 10 proxy[attrib] = 0;
7 postMessage('success'); 11 postMessage('success');
8 } else { 12 } else {
9 postMessage('error: Received non-supported attribute "' + attrib + ' "'); 13 postMessage('error: Received non-supported attribute "' + attrib + '"');
10 } 14 }
11 } catch (e) { 15 } catch (e) {
12 postMessage('error: ' + e); 16 postMessage('error: ' + e);
13 } 17 }
18 });
14 } 19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698