| Index: chrome/test/data/gpu/feature_canvas2d.html
|
| ===================================================================
|
| --- chrome/test/data/gpu/feature_canvas2d.html (revision 0)
|
| +++ chrome/test/data/gpu/feature_canvas2d.html (revision 0)
|
| @@ -0,0 +1,35 @@
|
| +<!DOCTYPE HTML>
|
| +<html>
|
| +<head>
|
| +<meta charset="utf-8">
|
| +<title>GPU Feature Testing: Canvas2D</title>
|
| +<script>
|
| +function init() {
|
| + var canvas = document.createElement("canvas");
|
| + if (!canvas)
|
| + return null;
|
| + // Make sure canvas is large enough to trigger gpu acceleration.
|
| + canvas.width = 500;
|
| + canvas.height = 500;
|
| + var context = null;
|
| + try {
|
| + context = canvas.getContext("2d");
|
| + } catch(e) {}
|
| + return context;
|
| +}
|
| +
|
| +function runTest() {
|
| + var c2d = init();
|
| + if (c2d) {
|
| + // Initialization was triggered lazily on the first draw.
|
| + c2d.fillRect(0, 0, 1, 1);
|
| + }
|
| + domAutomationController.setAutomationId(1);
|
| + domAutomationController.send("FINISHED");
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +Canvas2D should trigger GPU process launch if accelerated-2d-canvas is allowed.
|
| +</body>
|
| +</html>
|
|
|
| Property changes on: chrome/test/data/gpu/feature_canvas2d.html
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|