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

Side by Side Diff: content/gpu/gpu_main.cc

Issue 1429083002: gl_surface_egl: ensure off and on screen surfaces use the same EGLConfig (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | ui/base/x/x11_util.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 <stdlib.h> 5 #include <stdlib.h>
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <dwmapi.h> 8 #include <dwmapi.h>
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 #if defined(OS_WIN) 55 #if defined(OS_WIN)
56 #include "base/win/windows_version.h" 56 #include "base/win/windows_version.h"
57 #include "base/win/scoped_com_initializer.h" 57 #include "base/win/scoped_com_initializer.h"
58 #include "content/common/gpu/media/dxva_video_decode_accelerator.h" 58 #include "content/common/gpu/media/dxva_video_decode_accelerator.h"
59 #include "sandbox/win/src/sandbox.h" 59 #include "sandbox/win/src/sandbox.h"
60 #endif 60 #endif
61 61
62 #if defined(USE_X11) 62 #if defined(USE_X11)
63 #include "ui/base/x/x11_util.h" 63 #include "ui/base/x/x11_util.h"
64 #include "ui/gfx/x/x11_switches.h"
64 #endif 65 #endif
65 66
66 #if defined(OS_LINUX) 67 #if defined(OS_LINUX)
67 #include "content/public/common/sandbox_init.h" 68 #include "content/public/common/sandbox_init.h"
68 #endif 69 #endif
69 70
70 #if defined(OS_MACOSX) 71 #if defined(OS_MACOSX)
71 #include "base/message_loop/message_pump_mac.h" 72 #include "base/message_loop/message_pump_mac.h"
72 #include "content/common/sandbox_mac.h" 73 #include "content/common/sandbox_mac.h"
73 #endif 74 #endif
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 141
141 #if defined(OS_WIN) 142 #if defined(OS_WIN)
142 // Prevent Windows from displaying a modal dialog on failures like not being 143 // Prevent Windows from displaying a modal dialog on failures like not being
143 // able to load a DLL. 144 // able to load a DLL.
144 SetErrorMode( 145 SetErrorMode(
145 SEM_FAILCRITICALERRORS | 146 SEM_FAILCRITICALERRORS |
146 SEM_NOGPFAULTERRORBOX | 147 SEM_NOGPFAULTERRORBOX |
147 SEM_NOOPENFILEERRORBOX); 148 SEM_NOOPENFILEERRORBOX);
148 #elif defined(USE_X11) 149 #elif defined(USE_X11)
149 ui::SetDefaultX11ErrorHandlers(); 150 ui::SetDefaultX11ErrorHandlers();
151
152 #if !defined(OS_CHROMEOS)
153 DCHECK(base::CommandLine::ForCurrentProcess()->HasSwitch(
154 switches::kWindowDepth));
155 #endif
156
150 #endif 157 #endif
151 158
152 logging::SetLogMessageHandler(GpuProcessLogMessageHandler); 159 logging::SetLogMessageHandler(GpuProcessLogMessageHandler);
153 160
154 if (command_line.HasSwitch(switches::kSupportsDualGpus)) { 161 if (command_line.HasSwitch(switches::kSupportsDualGpus)) {
155 std::string types = command_line.GetSwitchValueASCII( 162 std::string types = command_line.GetSwitchValueASCII(
156 switches::kGpuDriverBugWorkarounds); 163 switches::kGpuDriverBugWorkarounds);
157 std::set<int> workarounds; 164 std::set<int> workarounds;
158 gpu::StringToFeatureSet(types, &workarounds); 165 gpu::StringToFeatureSet(types, &workarounds);
159 if (workarounds.count(gpu::FORCE_DISCRETE_GPU) == 1) 166 if (workarounds.count(gpu::FORCE_DISCRETE_GPU) == 1)
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 return true; 576 return true;
570 } 577 }
571 578
572 return false; 579 return false;
573 } 580 }
574 #endif // defined(OS_WIN) 581 #endif // defined(OS_WIN)
575 582
576 } // namespace. 583 } // namespace.
577 584
578 } // namespace content 585 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698