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

Unified Diff: ui/gl/gl_surface_egl.h

Issue 1123343004: Add a --use-angle flag for selecting the ANGLE renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move dependency on gl.gyp into conditional. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_egl.h
diff --git a/ui/gl/gl_surface_egl.h b/ui/gl/gl_surface_egl.h
index 614a78403c5e971fad00d04ac99b298a52f1b98d..c64385527640ced6f8e7a12d09768e444d2bf75c 100644
--- a/ui/gl/gl_surface_egl.h
+++ b/ui/gl/gl_surface_egl.h
@@ -11,6 +11,7 @@
#include <string>
+#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/time/time.h"
#include "ui/gfx/geometry/size.h"
@@ -23,6 +24,21 @@ namespace gfx {
// Get default EGL display for GLSurfaceEGL (differs by platform).
EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay();
+enum DisplayType {
+ DEFAULT,
+ SWIFT_SHADER,
+ ANGLE_WARP,
+ ANGLE_D3D9,
+ ANGLE_D3D11,
+ ANGLE_OPENGL,
+ ANGLE_OPENGLES,
+};
+
+GL_EXPORT void GetEGLInitDisplays(bool supports_angle_d3d,
+ bool supports_angle_opengl,
+ const base::CommandLine* command_line,
+ std::vector<DisplayType>* init_displays);
+
// Interface for EGL surface.
class GL_EXPORT GLSurfaceEGL : public GLSurface {
public:
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698