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

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

Issue 1542013005: Add a new driver bug workaround SANDBOX_START_EARLY Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just rebase Created 4 years, 7 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 <vector> 5 #include <vector>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/threading/thread_restrictions.h" 10 #include "base/threading/thread_restrictions.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 case kGLImplementationDesktopGL: 211 case kGLImplementationDesktopGL:
212 return GetGLWindowSystemBindingInfoGLX(info); 212 return GetGLWindowSystemBindingInfoGLX(info);
213 case kGLImplementationEGLGLES2: 213 case kGLImplementationEGLGLES2:
214 return GetGLWindowSystemBindingInfoEGL(info); 214 return GetGLWindowSystemBindingInfoEGL(info);
215 default: 215 default:
216 return false; 216 return false;
217 } 217 }
218 return false; 218 return false;
219 } 219 }
220 220
221 bool GetNativeLibraryNamesFromGLImplementation(
222 GLImplementation implementation,
223 std::vector<std::string>* required_libraries) {
224 DCHECK(required_libraries);
225 required_libraries->clear();
226
227 switch (implementation) {
228 case kGLImplementationDesktopGL:
229 required_libraries->push_back(kGLLibraryName);
230 break;
231 case kGLImplementationEGLGLES2: {
232 required_libraries->push_back(kGLESv2LibraryName);
233 required_libraries->push_back(kEGLLibraryName);
234 break;
235 }
236 default:
237 return false;
238 }
239
240 return true;
241 }
242
221 } // namespace gfx 243 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698