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

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

Issue 15827008: Move gpu_test_config stuff from content/ to gpu/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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
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/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/test/test_switches.h" 11 #include "base/test/test_switches.h"
12 #include "base/test/trace_event_analyzer.h" 12 #include "base/test/trace_event_analyzer.h"
13 #include "base/threading/platform_thread.h" 13 #include "base/threading/platform_thread.h"
14 #include "base/timer.h" 14 #include "base/timer.h"
15 #include "base/version.h" 15 #include "base/version.h"
16 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/tabs/tab_strip_model.h" 17 #include "chrome/browser/ui/tabs/tab_strip_model.h"
18 #include "chrome/common/chrome_paths.h" 18 #include "chrome/common/chrome_paths.h"
19 #include "chrome/common/chrome_switches.h" 19 #include "chrome/common/chrome_switches.h"
20 #include "chrome/test/base/tracing.h" 20 #include "chrome/test/base/tracing.h"
21 #include "chrome/test/base/ui_test_utils.h" 21 #include "chrome/test/base/ui_test_utils.h"
22 #include "chrome/test/perf/browser_perf_test.h" 22 #include "chrome/test/perf/browser_perf_test.h"
23 #include "chrome/test/perf/perf_test.h" 23 #include "chrome/test/perf/perf_test.h"
24 #include "content/public/browser/render_view_host.h" 24 #include "content/public/browser/render_view_host.h"
25 #include "content/public/browser/web_contents.h" 25 #include "content/public/browser/web_contents.h"
26 #include "content/public/common/content_switches.h" 26 #include "content/public/common/content_switches.h"
27 #include "content/public/test/browser_test_utils.h" 27 #include "content/public/test/browser_test_utils.h"
28 #include "content/test/gpu/gpu_test_config.h" 28 #include "gpu/config/gpu_test_config.h"
29 #include "net/base/net_util.h" 29 #include "net/base/net_util.h"
30 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 31 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
32 32
33 #if defined(OS_WIN) 33 #if defined(OS_WIN)
34 #include "base/win/windows_version.h" 34 #include "base/win/windows_version.h"
35 #endif 35 #endif
36 36
37 // Run with --vmodule=latency_tests=1 to print verbose latency info. 37 // Run with --vmodule=latency_tests=1 to print verbose latency info.
38 38
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 void LatencyTest::RunTest(const std::vector<int>& behaviors) { 251 void LatencyTest::RunTest(const std::vector<int>& behaviors) {
252 verbose_ = (logging::GetVlogLevel("latency_tests") > 0); 252 verbose_ = (logging::GetVlogLevel("latency_tests") > 0);
253 253
254 // Linux Intel uses mesa driver, where multisampling is not supported. 254 // Linux Intel uses mesa driver, where multisampling is not supported.
255 // Multisampling is also not supported on virtualized mac os. 255 // Multisampling is also not supported on virtualized mac os.
256 // The latency test uses the multisampling blit trace event to determine when 256 // The latency test uses the multisampling blit trace event to determine when
257 // the compositor is consuming the webgl context, so it currently doesn't work 257 // the compositor is consuming the webgl context, so it currently doesn't work
258 // without multisampling. Since the Latency test does not depend much on the 258 // without multisampling. Since the Latency test does not depend much on the
259 // GPU, let's just skip testing on Intel since the data is redundant with 259 // GPU, let's just skip testing on Intel since the data is redundant with
260 // other non-Intel bots. 260 // other non-Intel bots.
261 GPUTestBotConfig test_bot; 261 gpu::GPUTestBotConfig test_bot;
262 test_bot.LoadCurrentConfig(NULL); 262 test_bot.LoadCurrentConfig(NULL);
263 const std::vector<uint32>& gpu_vendor = test_bot.gpu_vendor(); 263 const std::vector<uint32>& gpu_vendor = test_bot.gpu_vendor();
264 #if defined(OS_LINUX) 264 #if defined(OS_LINUX)
265 if (gpu_vendor.size() == 1 && gpu_vendor[0] == 0x8086) 265 if (gpu_vendor.size() == 1 && gpu_vendor[0] == 0x8086)
266 return; 266 return;
267 #endif // defined(OS_LINUX) 267 #endif // defined(OS_LINUX)
268 #if defined(OS_MACOSX) 268 #if defined(OS_MACOSX)
269 if (gpu_vendor.size() == 1 && gpu_vendor[0] == 0x15AD) 269 if (gpu_vendor.size() == 1 && gpu_vendor[0] == 0x15AD)
270 return; 270 return;
271 #endif // defined(OS_MACOSX) 271 #endif // defined(OS_MACOSX)
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 kInputHeavy | kInputDirty | kRafHeavy, \ 748 kInputHeavy | kInputDirty | kRafHeavy, \
749 kInputHeavy | kInputDirty | kRafHeavy | kPaintHeavy, \ 749 kInputHeavy | kInputDirty | kRafHeavy | kPaintHeavy, \
750 kInputDirty | kPaintHeavy, \ 750 kInputDirty | kPaintHeavy, \
751 kInputDirty | kRafHeavy | kPaintHeavy) 751 kInputDirty | kRafHeavy | kPaintHeavy)
752 752
753 INSTANTIATE_TEST_CASE_P(, LatencyTestWebGL, LATENCY_SUITE_MODES()); 753 INSTANTIATE_TEST_CASE_P(, LatencyTestWebGL, LATENCY_SUITE_MODES());
754 INSTANTIATE_TEST_CASE_P(, LatencyTestWebGLThread, LATENCY_SUITE_MODES()); 754 INSTANTIATE_TEST_CASE_P(, LatencyTestWebGLThread, LATENCY_SUITE_MODES());
755 INSTANTIATE_TEST_CASE_P(, LatencyTestSW, LATENCY_SUITE_MODES()); 755 INSTANTIATE_TEST_CASE_P(, LatencyTestSW, LATENCY_SUITE_MODES());
756 756
757 } // namespace 757 } // namespace
OLDNEW
« no previous file with comments | « chrome/test/gpu/webgl_infobar_browsertest.cc ('k') | chrome/test/perf/rendering/throughput_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698