Commit 0caa3dc5 authored by Xida Chen's avatar Xida Chen Committed by Commit Bot

Make paint worklet pixel test better

This CL improves an existing gpu pixel test, to exercise more
canvas API calls, such as resetTransform.

Bug: None
Change-Id: I4870e3fed726dfb4d8e6b2d8e9631d444b9cc3f3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2005813Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
Commit-Queue: Xida Chen <xidachen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735987}
parent 5f3a2e58
......@@ -8,6 +8,7 @@ that the baseline images are regenerated on the next run.
<html>
<head>
<meta name="viewport" content="initial-scale=1">
<title>PaintWorklet with basic draw and transform operations</title>
<style type="text/css">
.nomargin {
......@@ -23,7 +24,15 @@ registerPaint('basic', class {
paint(ctx, geom) {
ctx.fillStyle = 'green';
ctx.transform(1, 0.5, 0, 1, 20, 20);
ctx.fillRect(0, 0, 200, 200);
ctx.fillRect(0, 0, 50, 50);
ctx.resetTransform();
ctx.fillStyle = 'blue';
ctx.translate(150, 60);
ctx.rotate(60 * Math.PI / 180);
ctx.scale(1.5, 1);
ctx.fillRect(0, 0, 50, 50);
}
});
</script>
......
......@@ -221,7 +221,6 @@ crbug.com/1019462 [ android nvidia no-skia-renderer ] Pixel_Video_MP4_FourColors
crbug.com/1019462 [ android nvidia no-skia-renderer ] Pixel_Video_MP4_Rounded_Corner [ RetryOnFailure ]
crbug.com/1019462 [ android nvidia no-skia-renderer ] Pixel_Video_Context_Loss_VP9 [ RetryOnFailure ]
crbug.com/1019462 [ android nvidia no-skia-renderer ] Pixel_WebGL2_BlitFramebuffer_Result_Displayed [ RetryOnFailure ]
crbug.com/1041572 [ android nvidia no-skia-renderer ] Pixel_PaintWorkletBasics [ Skip ]
# Skip dual gpu switch tests on Mac Nvidia
crbug.com/681341 [ mac nvidia ] Pixel_WebGLLowToHighPower [ Skip ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment