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

Side by Side Diff: chrome/test/perf/rendering/throughput_tests.cc

Issue 23514071: Do not explicitly use --force-compositing-mode in memory/throughput tests; use the default config f… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/gpu/gpu_memory_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 if (!command_line->HasSwitch(switches::kRecordMode)) 186 if (!command_line->HasSwitch(switches::kRecordMode))
187 command_line->AppendSwitch(switches::kPlaybackMode); 187 command_line->AppendSwitch(switches::kPlaybackMode);
188 command_line->AppendSwitchNative(switches::kDiskCacheDir, 188 command_line->AppendSwitchNative(switches::kDiskCacheDir,
189 local_cache_path_.value()); 189 local_cache_path_.value());
190 LOG(INFO) << local_cache_path_.value(); 190 LOG(INFO) << local_cache_path_.value();
191 } 191 }
192 // We are measuring throughput, so we don't want any FPS throttling. 192 // We are measuring throughput, so we don't want any FPS throttling.
193 command_line->AppendSwitch(switches::kDisableGpuVsync); 193 command_line->AppendSwitch(switches::kDisableGpuVsync);
194 command_line->AppendSwitch(switches::kAllowFileAccessFromFiles); 194 command_line->AppendSwitch(switches::kAllowFileAccessFromFiles);
195 // Enable or disable GPU acceleration. 195 // Enable or disable GPU acceleration.
196 if (use_gpu_) { 196 if (!use_gpu_) {
197 command_line->AppendSwitch(switches::kForceCompositingMode);
198 } else {
199 command_line->AppendSwitch(switches::kDisableAcceleratedCompositing); 197 command_line->AppendSwitch(switches::kDisableAcceleratedCompositing);
200 command_line->AppendSwitch(switches::kDisableExperimentalWebGL); 198 command_line->AppendSwitch(switches::kDisableExperimentalWebGL);
201 command_line->AppendSwitch(switches::kDisableAccelerated2dCanvas); 199 command_line->AppendSwitch(switches::kDisableAccelerated2dCanvas);
202 } 200 }
203 if (use_compositor_thread_) { 201 if (use_compositor_thread_) {
204 ASSERT_TRUE(use_gpu_); 202 ASSERT_TRUE(use_gpu_);
205 command_line->AppendSwitch(switches::kEnableThreadedCompositing); 203 command_line->AppendSwitch(switches::kEnableThreadedCompositing);
206 } else { 204 } else {
207 command_line->AppendSwitch(switches::kDisableThreadedCompositing); 205 command_line->AppendSwitch(switches::kDisableThreadedCompositing);
208 } 206 }
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 600
603 IN_PROC_BROWSER_TEST_F(ThroughputTestGPU, CanvasManyImagesGPU) { 601 IN_PROC_BROWSER_TEST_F(ThroughputTestGPU, CanvasManyImagesGPU) {
604 RunCanvasBenchTest("many_images", kNone | kIsGpuCanvasTest); 602 RunCanvasBenchTest("many_images", kNone | kIsGpuCanvasTest);
605 } 603 }
606 604
607 IN_PROC_BROWSER_TEST_F(ThroughputTestThread, CanvasManyImagesGPU) { 605 IN_PROC_BROWSER_TEST_F(ThroughputTestThread, CanvasManyImagesGPU) {
608 RunCanvasBenchTest("many_images", kNone | kIsGpuCanvasTest); 606 RunCanvasBenchTest("many_images", kNone | kIsGpuCanvasTest);
609 } 607 }
610 608
611 } // namespace 609 } // namespace
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_memory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698