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

Unified Diff: ui/gl/gl_surface_egl.cc

Issue 2700713004: gpu: Only init ANGLE Platform on ANGLE. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_egl.cc
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
index c17892fb1274eadae8dcf0db4a6076173e38b328..1d92d67a32bff3c985349b47ad99aec167a24bc4 100644
--- a/ui/gl/gl_surface_egl.cc
+++ b/ui/gl/gl_surface_egl.cc
@@ -654,8 +654,10 @@ EGLDisplay GLSurfaceEGL::InitializeDisplay(
}
// Init ANGLE platform now that we have the global display.
- if (!InitializeANGLEPlatform(display)) {
- LOG(ERROR) << "ANGLE Platform initialization failed.";
+ if (supports_angle_d3d || supports_angle_opengl || supports_angle_null) {
+ if (!InitializeANGLEPlatform(display)) {
+ LOG(ERROR) << "ANGLE Platform initialization failed.";
+ }
}
if (!eglInitialize(display, nullptr, nullptr)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698