| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |