| 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_egl.h" | 5 #include "ui/gl/gl_surface_egl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 | 372 |
| 373 } // namespace | 373 } // namespace |
| 374 | 374 |
| 375 void GetEGLInitDisplays(bool supports_angle_d3d, | 375 void GetEGLInitDisplays(bool supports_angle_d3d, |
| 376 bool supports_angle_opengl, | 376 bool supports_angle_opengl, |
| 377 bool supports_angle_null, | 377 bool supports_angle_null, |
| 378 const base::CommandLine* command_line, | 378 const base::CommandLine* command_line, |
| 379 std::vector<DisplayType>* init_displays) { | 379 std::vector<DisplayType>* init_displays) { |
| 380 // SwiftShader does not use the platform extensions | 380 // SwiftShader does not use the platform extensions |
| 381 if (command_line->GetSwitchValueASCII(switches::kUseGL) == | 381 if (command_line->GetSwitchValueASCII(switches::kUseGL) == |
| 382 kGLImplementationSwiftShaderName) { | 382 kGLImplementationSwiftShaderForWebGLName) { |
| 383 init_displays->push_back(SWIFT_SHADER); | 383 init_displays->push_back(SWIFT_SHADER); |
| 384 return; | 384 return; |
| 385 } | 385 } |
| 386 | 386 |
| 387 std::string requested_renderer = | 387 std::string requested_renderer = |
| 388 command_line->GetSwitchValueASCII(switches::kUseANGLE); | 388 command_line->GetSwitchValueASCII(switches::kUseANGLE); |
| 389 | 389 |
| 390 bool use_angle_default = | 390 bool use_angle_default = |
| 391 !command_line->HasSwitch(switches::kUseANGLE) || | 391 !command_line->HasSwitch(switches::kUseANGLE) || |
| 392 requested_renderer == kANGLEImplementationDefaultName; | 392 requested_renderer == kANGLEImplementationDefaultName; |
| (...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1228 } | 1228 } |
| 1229 | 1229 |
| 1230 void* SurfacelessEGL::GetShareHandle() { | 1230 void* SurfacelessEGL::GetShareHandle() { |
| 1231 return NULL; | 1231 return NULL; |
| 1232 } | 1232 } |
| 1233 | 1233 |
| 1234 SurfacelessEGL::~SurfacelessEGL() { | 1234 SurfacelessEGL::~SurfacelessEGL() { |
| 1235 } | 1235 } |
| 1236 | 1236 |
| 1237 } // namespace gl | 1237 } // namespace gl |
| OLD | NEW |