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

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

Issue 2680423002: Introducing 2 usages for SwiftShader (Closed)
Patch Set: Added missing change to GpuDataManagerImplPrivate Created 3 years, 10 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
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_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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698