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

Unified Diff: content/test/data/gpu/pixel_background.html

Issue 302003015: Created a separate test page for gpu rasterization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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: content/test/data/gpu/pixel_background.html
diff --git a/content/test/data/gpu/pixel_background.html b/content/test/data/gpu/pixel_background.html
new file mode 100644
index 0000000000000000000000000000000000000000..e3ec20a940987e8c2be914a22c65d43ace7c6e77
--- /dev/null
+++ b/content/test/data/gpu/pixel_background.html
@@ -0,0 +1,53 @@
+<html>
+<head>
+<meta name="viewport" content="initial-scale=1">
+<title>Basic Rasterization Test: Blue Box over Black Background</title>
+<style type="text/css">
+body {
+ margin: 0px;
+ padding: 0px;
+ background-color: white;
+}
+#container {
+ position: relative;
+ margin: 10px;
+ width: 200px;
+ height: 200px;
+ background-color: black;
+}
+#blue_box {
+ position: relative;
+ top: 50px;
+ left: 50px;
+ width: 100px;
+ height: 100px;
+ background-color: blue;
+}
+</style>
+<script>
+var g_swapsBeforeAck = 15;
+
+function main() {
+ waitForFinish();
+}
+
+function waitForFinish()
+{
+ if (g_swapsBeforeAck == 0) {
+ domAutomationController.setAutomationId(1);
+ domAutomationController.send("SUCCESS");
+ } else {
+ g_swapsBeforeAck--;
+ document.getElementById('blue_box').style.zIndex = g_swapsBeforeAck + 1;
+ window.webkitRequestAnimationFrame(waitForFinish);
+ }
+}
+</script>
+</head>
+
+<body onload="main()">
+<div id="container">
+ <div id="blue_box"></div>
+</div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698