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

Unified Diff: chrome/test/data/gpu/feature_compositing.html

Issue 9509001: Add basic threaded compositor test to gpu_feature_browsertest.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disabling because of assertion Created 8 years, 10 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 | chrome/test/gpu/gpu_feature_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/gpu/feature_compositing.html
diff --git a/chrome/test/data/gpu/feature_compositing.html b/chrome/test/data/gpu/feature_compositing.html
index e834b8c536374a2d4fa2ae77e120e8dde62ba0d0..3f4f8811a5c8ca545dd3549e5bc16af05b9299c2 100644
--- a/chrome/test/data/gpu/feature_compositing.html
+++ b/chrome/test/data/gpu/feature_compositing.html
@@ -10,6 +10,8 @@ body {
</style>
<script>
var frameCount = 0;
+// 3 is not enough for threaded compositing, using 6 to avoid racing.
+var totalRafs = 6;
function runTest() {
window.webkitRequestAnimationFrame(draw);
@@ -18,7 +20,7 @@ function draw() {
frameCount++;
var table = document.getElementById("table");
table.style.backgroundColor = (frameCount & 1) ? 'red' : 'black';
- if (frameCount == 3) {
+ if (frameCount == totalRafs) {
domAutomationController.setAutomationId(1);
domAutomationController.send("FINISHED");
} else {
« no previous file with comments | « no previous file | chrome/test/gpu/gpu_feature_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698