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: rebase 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..9aa5d980b178f12dc22023eea8c077eb656f6469
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/resources/visual-update.js
@@ -0,0 +1,17 @@
+self.onmessage = function(e) {
+ self.proxy = e.data.proxy;
+ var update = function(timestamp) {
+ if (!self.proxy.initialized) {
+ requestAnimationFrame(update);
+ return;
+ }
+ self.proxy.opacity = 0.5;
+ var transform = self.proxy.transform;
+ transform.m42 = 100.0;
+ self.proxy.transform = transform;
+ self.proxy.scrollLeft = 100;
+ self.proxy.scrollTop = 100;
+ self.postMessage({});
+ };
+ requestAnimationFrame(update);
+}

Powered by Google App Engine
This is Rietveld 408576698