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

Side by Side Diff: chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc

Issue 45963003: Move test-only ContextFactory implementations out of production targets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert bad ui/base changes Created 7 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #if defined(OS_MACOSX) 7 #if defined(OS_MACOSX)
8 #include "base/mac/mac_util.h" 8 #include "base/mac/mac_util.h"
9 #endif 9 #endif
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // is loaded from the local file system ( file:// ). The following switch 118 // is loaded from the local file system ( file:// ). The following switch
119 // fixes that error. 119 // fixes that error.
120 command_line->AppendSwitch(switches::kAllowFileAccessFromFiles); 120 command_line->AppendSwitch(switches::kAllowFileAccessFromFiles);
121 121
122 if (HasFlag(kSmallWindow)) { 122 if (HasFlag(kSmallWindow)) {
123 command_line->AppendSwitchASCII(switches::kWindowSize, "800,600"); 123 command_line->AppendSwitchASCII(switches::kWindowSize, "800,600");
124 } else { 124 } else {
125 command_line->AppendSwitchASCII(switches::kWindowSize, "2000,1500"); 125 command_line->AppendSwitchASCII(switches::kWindowSize, "2000,1500");
126 } 126 }
127 127
128 command_line->AppendSwitch(switches::kDisableTestCompositor); 128 UseRealGLContexts();
129 129
130 if (!HasFlag(kUseGpu)) { 130 if (!HasFlag(kUseGpu)) {
131 command_line->AppendSwitch(switches::kDisableGpu); 131 command_line->AppendSwitch(switches::kDisableGpu);
132 } else { 132 } else {
133 command_line->AppendSwitch(switches::kForceCompositingMode); 133 command_line->AppendSwitch(switches::kForceCompositingMode);
134 } 134 }
135 135
136 if (HasFlag(kDisableVsync)) 136 if (HasFlag(kDisableVsync))
137 command_line->AppendSwitch(switches::kDisableGpuVsync); 137 command_line->AppendSwitch(switches::kDisableGpuVsync);
138 138
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 TabCapturePerformanceTest, 260 TabCapturePerformanceTest,
261 testing::Values( 261 testing::Values(
262 kScalingTestBase | kScaleQualityFast, 262 kScalingTestBase | kScaleQualityFast,
263 kScalingTestBase | kScaleQualityGood, 263 kScalingTestBase | kScaleQualityGood,
264 kScalingTestBase | kScaleQualityBest, 264 kScalingTestBase | kScaleQualityBest,
265 kScalingTestBase | kScaleQualityFast | kSmallWindow, 265 kScalingTestBase | kScaleQualityFast | kSmallWindow,
266 kScalingTestBase | kScaleQualityGood | kSmallWindow, 266 kScalingTestBase | kScaleQualityGood | kSmallWindow,
267 kScalingTestBase | kScaleQualityBest | kSmallWindow)); 267 kScalingTestBase | kScaleQualityBest | kSmallWindow));
268 268
269 #endif // USE_AURA 269 #endif // USE_AURA
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698