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

Unified Diff: content/test/data/gpu/pixel_canvas_display_linear-rgb.html

Issue 2448583002: Adding browser pixel test for linear-rgb support in Canvas. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/pixel_expectations.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/gpu/pixel_canvas_display_linear-rgb.html
diff --git a/content/test/data/gpu/pixel_canvas_display_linear-rgb.html b/content/test/data/gpu/pixel_canvas_display_linear-rgb.html
new file mode 100644
index 0000000000000000000000000000000000000000..5ed44617732ad5d24d9a749220847898fb219391
--- /dev/null
+++ b/content/test/data/gpu/pixel_canvas_display_linear-rgb.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
xidachen 2016/10/24 20:30:18 Please use one of the "pixel_offscreenCanvas" test
zakerinasab 2016/10/24 20:53:41 Done.
+<canvas id="cnv" width=100 height=100></canvas>
+
+<script>
+ // This layout test checks if the 2D canvas is properly displayed
+ // when the color space is set to linear-rgb.
+ var ctx = document.getElementById("cnv").getContext("2d", {colorSpace:'linear-rgb'});
+ ctx.fillStyle = 'blue';
xidachen 2016/10/24 20:30:18 Fill the entire canvas could hide bugs sometimes.
zakerinasab 2016/10/24 20:53:41 Done.
+ ctx.fillRect(0,0,100,100);
+ ctx.stroke();
+</script>
+
+
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/pixel_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698