| 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 } | 288 } |
| 289 case kGLImplementationMockGL: | 289 case kGLImplementationMockGL: |
| 290 return new GLSurfaceStub; | 290 return new GLSurfaceStub; |
| 291 default: | 291 default: |
| 292 NOTREACHED(); | 292 NOTREACHED(); |
| 293 return NULL; | 293 return NULL; |
| 294 } | 294 } |
| 295 } | 295 } |
| 296 | 296 |
| 297 EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay() { | 297 EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay() { |
| 298 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableD3D11)) | 298 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableD3D11) && |
| 299 CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableD3D11)) |
| 299 return EGL_D3D11_ELSE_D3D9_DISPLAY_ANGLE; | 300 return EGL_D3D11_ELSE_D3D9_DISPLAY_ANGLE; |
| 300 | 301 |
| 301 return EGL_DEFAULT_DISPLAY; | 302 return EGL_DEFAULT_DISPLAY; |
| 302 } | 303 } |
| 303 | 304 |
| 304 } // namespace gfx | 305 } // namespace gfx |
| OLD | NEW |