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

Side by Side Diff: chrome/test/gpu/gpu_feature_browsertest.cc

Issue 10351002: ui: Move surface/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gpu DEPS Created 8 years, 7 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 | « chrome/renderer/nacl_desc_wrapper_chrome.cc ('k') | content/DEPS » ('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/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/test/trace_event_analyzer.h" 9 #include "base/test/trace_event_analyzer.h"
10 #include "base/version.h" 10 #include "base/version.h"
11 #include "chrome/browser/gpu_blacklist.h" 11 #include "chrome/browser/gpu_blacklist.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/common/chrome_paths.h" 13 #include "chrome/common/chrome_paths.h"
14 #include "chrome/common/chrome_switches.h" 14 #include "chrome/common/chrome_switches.h"
15 #include "chrome/test/base/in_process_browser_test.h" 15 #include "chrome/test/base/in_process_browser_test.h"
16 #include "chrome/test/base/test_launcher_utils.h" 16 #include "chrome/test/base/test_launcher_utils.h"
17 #include "chrome/test/base/tracing.h" 17 #include "chrome/test/base/tracing.h"
18 #include "chrome/test/base/ui_test_utils.h" 18 #include "chrome/test/base/ui_test_utils.h"
19 #include "content/public/browser/gpu_data_manager.h" 19 #include "content/public/browser/gpu_data_manager.h"
20 #include "content/public/common/content_switches.h" 20 #include "content/public/common/content_switches.h"
21 #include "content/test/gpu/gpu_test_config.h" 21 #include "content/test/gpu/gpu_test_config.h"
22 #include "content/test/gpu/test_switches.h" 22 #include "content/test/gpu/test_switches.h"
23 #include "net/base/net_util.h" 23 #include "net/base/net_util.h"
24 #include "ui/gfx/gl/gl_switches.h" 24 #include "ui/gfx/gl/gl_switches.h"
25 #if defined(OS_MACOSX) 25 #if defined(OS_MACOSX)
26 #include "ui/gfx/surface/io_surface_support_mac.h" 26 #include "ui/surface/io_surface_support_mac.h"
27 #endif 27 #endif
28 28
29 using content::GpuDataManager; 29 using content::GpuDataManager;
30 using content::GpuFeatureType; 30 using content::GpuFeatureType;
31 using trace_analyzer::Query; 31 using trace_analyzer::Query;
32 using trace_analyzer::TraceAnalyzer; 32 using trace_analyzer::TraceAnalyzer;
33 using trace_analyzer::TraceEventVector; 33 using trace_analyzer::TraceEventVector;
34 34
35 namespace { 35 namespace {
36 36
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 // indicate that the renderer is not simply spinning on RAF. 435 // indicate that the renderer is not simply spinning on RAF.
436 EXPECT_GT(stats.mean_us, 15000.0); 436 EXPECT_GT(stats.mean_us, 15000.0);
437 437
438 // Print out the trace events upon error to debug failures. 438 // Print out the trace events upon error to debug failures.
439 if (stats.mean_us <= 15000.0) { 439 if (stats.mean_us <= 15000.0) {
440 fprintf(stderr, "\n\nTRACE JSON:\n\n%s\n\n", trace_events_json_.c_str()); 440 fprintf(stderr, "\n\nTRACE JSON:\n\n%s\n\n", trace_events_json_.c_str());
441 } 441 }
442 } 442 }
443 443
444 } // namespace anonymous 444 } // namespace anonymous
OLDNEW
« no previous file with comments | « chrome/renderer/nacl_desc_wrapper_chrome.cc ('k') | content/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698