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

Side by Side Diff: chrome/browser/gpu_process_host.cc

Issue 6257006: Move a bunch of random other files to src/ui/base... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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/browser/external_tab_container_win.cc ('k') | chrome/browser/possible_url_model.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/gpu_process_host.h" 5 #include "chrome/browser/gpu_process_host.h"
6 6
7 #include "app/app_switches.h" 7 #include "app/app_switches.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 14 matching lines...) Expand all
25 #include "chrome/gpu/gpu_thread.h" 25 #include "chrome/gpu/gpu_thread.h"
26 #include "grit/browser_resources.h" 26 #include "grit/browser_resources.h"
27 #include "ipc/ipc_channel_handle.h" 27 #include "ipc/ipc_channel_handle.h"
28 #include "ipc/ipc_switches.h" 28 #include "ipc/ipc_switches.h"
29 #include "media/base/media_switches.h" 29 #include "media/base/media_switches.h"
30 30
31 #if defined(OS_LINUX) 31 #if defined(OS_LINUX)
32 // These two #includes need to come after render_messages.h. 32 // These two #includes need to come after render_messages.h.
33 #include <gdk/gdkwindow.h> // NOLINT 33 #include <gdk/gdkwindow.h> // NOLINT
34 #include <gdk/gdkx.h> // NOLINT 34 #include <gdk/gdkx.h> // NOLINT
35 #include "app/x11_util.h"
36 #include "gfx/gtk_native_view_id_manager.h" 35 #include "gfx/gtk_native_view_id_manager.h"
37 #include "gfx/size.h" 36 #include "gfx/size.h"
37 #include "ui/base/x/x11_util.h"
38 #endif // defined(OS_LINUX) 38 #endif // defined(OS_LINUX)
39 39
40 namespace { 40 namespace {
41 41
42 enum GPUBlacklistTestResult { 42 enum GPUBlacklistTestResult {
43 BLOCKED, 43 BLOCKED,
44 ALLOWED, 44 ALLOWED,
45 BLACKLIST_TEST_RESULT_MAX 45 BLACKLIST_TEST_RESULT_MAX
46 }; 46 };
47 47
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); 650 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess();
651 if (browser_command_line.HasSwitch(switches::kIgnoreGpuBlacklist) || 651 if (browser_command_line.HasSwitch(switches::kIgnoreGpuBlacklist) ||
652 blacklist->LoadGpuBlacklist(gpu_blacklist_json.as_string(), true)) { 652 blacklist->LoadGpuBlacklist(gpu_blacklist_json.as_string(), true)) {
653 gpu_blacklist_.reset(blacklist); 653 gpu_blacklist_.reset(blacklist);
654 return true; 654 return true;
655 } 655 }
656 delete blacklist; 656 delete blacklist;
657 return false; 657 return false;
658 } 658 }
659 659
OLDNEW
« no previous file with comments | « chrome/browser/external_tab_container_win.cc ('k') | chrome/browser/possible_url_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698