author Adam Raine <asraine@google.com>
Sat, 24 Aug 2019 09:58:18 +0000
changeset 553843 6e1dcbe925421c39cb7981354f13d7219506ffdd
permissions -rw-r--r--
Bug 1568324 [wpt PR 18013] - Composite color values on the worklet thread, a=testonly Automatic update from web-platform-tests Composite color values on the worklet thread Follow up to: https://chromium-review.googlesource.com/c/chromium/src/+/1614120 (Allows number values to be composited on the worklet thread) --and-- https://chromium-review.googlesource.com/c/chromium/src/+/1698667 (Allows creation of keyframe model for color values on compositor) This CL adds similar functionality as that used for number types to update color values on the compositor. New classes CrossThreadColorValue and CSSUnsupportedColorValue were created for CSSPaintValue::GetImage to identify color valued custom properties as compositable. Bug: 883721 Change-Id: Ib8c26e5c6c6077b21288de3156fa35cc6e02435d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1713747 Commit-Queue: Adam Raine <asraine@google.com> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Reviewed-by: Stephen McGruer <smcgruer@chromium.org> Reviewed-by: Xida Chen <xidachen@chromium.org> Cr-Commit-Position: refs/heads/master@{#687702} -- wpt-commits: 7c42039e0623abaae97105214e9968c92272f15d wpt-pr: 18013

<!DOCTYPE html>
<canvas id ="canvas" width="100" height="100"></canvas>
var canvas = document.getElementById('canvas');
var context = canvas.getContext("2d");
context.fillStyle = 'rgb(127, 127, 0)';
context.fillRect(0, 0, 100, 100);