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

Unified Diff: third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/visual-update.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/visual-update.js
diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/visual-update.js b/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/visual-update.js
new file mode 100644
index 0000000000000000000000000000000000000000..b4d3a2ba97da2bf8c04d230a22d1d7a3d49648d1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/visual-update.js
@@ -0,0 +1,13 @@
+self.importScripts('worker-common.js');
+
+self.onmessage = function(msg) {
+ awaitProxyInit(msg.data.proxy).then((proxy) => {
+ proxy.opacity = 0.5;
+ var transform = proxy.transform;
+ transform.m42 = 100.0;
+ proxy.transform = transform;
+ proxy.scrollLeft = 100;
+ proxy.scrollTop = 100;
+ postMessage({});
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698