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

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

Issue 11826022: Revert 175753 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | « content/public/common/gpu_memory_stats.cc ('k') | content/test/data/gpu/mem_webgl.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/gpu/mem_css3d.html
===================================================================
--- content/test/data/gpu/mem_css3d.html (revision 175756)
+++ content/test/data/gpu/mem_css3d.html (working copy)
@@ -1,52 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-<title>GPU Memory Test: Use N MB of GPU Memory with 3D CSS</title>
-<style>
-.block {
- background: #FF0000;
- font-size: 150px;
- height: 512px;
- position: absolute;
- width: 512px;
-
-}
-.perspective
-{
- border: 1px solid black;
- height: 512px;
- text-align: center;
- width: 512px;
- -webkit-perspective: 600px;
- -webkit-perspective-origin: center center;
- -webkit-transform-style: preserve-3d;
-}
-</style>
-<script type="text/javascript">
-// Generate n 3D CSS elements that are each about 1 MB in size
-function useGpuMemory(mb_to_use) {
- n = mb_to_use;
- var blocks = document.getElementById("blocks");
- var blockArray = document.getElementsByClassName("block");
- for (var i = 0; i < n; i++) {
- var block = document.createElement("div");
- block.className = "block";
- block.style.WebkitTransform = "translate3d(0px, 0px, " + (i-n+1) + "px)";
- block.style.opacity = 0.1;
- block.style.background = "#00FF00";
- block.textContent = i;
- blocks.appendChild(block);
- }
-
- // Touch offsetTop to trigger a layout.
- document.body.offsetTop;
-
- // Signal back to the test runner that we're done allocating memory.
- domAutomationController.send("DONE_USE_GPU_MEMORY");
-}
-</script>
-</head>
-<body>
-<div id="blocks" class="perspective"/>
-</body>
-</html>
« no previous file with comments | « content/public/common/gpu_memory_stats.cc ('k') | content/test/data/gpu/mem_webgl.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698