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

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

Issue 215053004: Revert "Remove the enable-d3d11 flag so that d3d11 is enabled by default." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and update pixel_tests revision. Created 6 years, 8 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 | « content/test/gpu/page_sets/pixel_tests.json ('k') | ui/gl/gl_switches.h » ('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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « content/test/gpu/page_sets/pixel_tests.json ('k') | ui/gl/gl_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698