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

Unified Diff: chrome/test/data/perf/latency_suite.html

Issue 10829015: Add compositor thread mode to latency tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/perf/rendering/latency_tests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/perf/latency_suite.html
diff --git a/chrome/test/data/perf/latency_suite.html b/chrome/test/data/perf/latency_suite.html
index c1dfa4ade8394d9ad532c4e889bd8eb1b93bc646..115047de73b2481a8fbd0110be350904e389a09a 100644
--- a/chrome/test/data/perf/latency_suite.html
+++ b/chrome/test/data/perf/latency_suite.html
@@ -58,7 +58,7 @@ function setCoordinates(e) {
function init() {
parseParams();
- if (testParams.mode == 'webgl') {
+ if (testParams.mode.indexOf('webgl') != -1) {
var canvas = document.getElementById('canvas');
if (!canvas)
return false;
@@ -101,7 +101,7 @@ function draw() {
sleep(parseInt(testParams.delayTimeMS));
}
- if (testParams.mode == 'webgl') {
+ if (testParams.mode.indexOf('webgl') != -1) {
gl.viewport(0, 0, testParams.canvasWidth, testParams.canvasWidth);
if (testParams.paintHeavy) {
gl.clearColor(0, 0, 0.0, 1.0);
@@ -128,7 +128,7 @@ function draw() {
frameCount++;
if (frameCount == parseInt(testParams.numFrames)) {
- if (testParams.mode == 'webgl')
+ if (testParams.mode.indexOf('webgl') != -1)
gl.finish();
endTest();
} else {
« no previous file with comments | « no previous file | chrome/test/perf/rendering/latency_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698