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

Side by Side Diff: ui/gl/gl_surface_win.cc

Issue 819223002: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 12 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
« no previous file with comments | « ui/gl/gl_surface_egl.cc ('k') | ui/gl/gpu_switching_manager.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 "ui/gl/gl_surface.h" 5 #include "ui/gl/gl_surface.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 } 346 }
347 case kGLImplementationMockGL: 347 case kGLImplementationMockGL:
348 return new GLSurfaceStub; 348 return new GLSurfaceStub;
349 default: 349 default:
350 NOTREACHED(); 350 NOTREACHED();
351 return NULL; 351 return NULL;
352 } 352 }
353 } 353 }
354 354
355 EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay() { 355 EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay() {
356 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableD3D11) || 356 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
357 CommandLine::ForCurrentProcess()->HasSwitch(switches::kUseWarp)) 357 switches::kDisableD3D11) ||
358 base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kUseWarp))
358 return GetDC(NULL); 359 return GetDC(NULL);
359 return EGL_D3D11_ELSE_D3D9_DISPLAY_ANGLE; 360 return EGL_D3D11_ELSE_D3D9_DISPLAY_ANGLE;
360 } 361 }
361 362
362 } // namespace gfx 363 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_surface_egl.cc ('k') | ui/gl/gpu_switching_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698