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

Unified Diff: ui/gl/gl_surface_egl.cc

Issue 12038095: Android webview fix gpu crashes after destroy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unneeded changes. Created 7 years, 11 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
Index: ui/gl/gl_surface_egl.cc
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
index 7d216c140f778778a9b6ae3cafb9464b09254190..e9c50b41e121b1c5dc6a03ef18d4f407dbbf2fa6 100644
--- a/ui/gl/gl_surface_egl.cc
+++ b/ui/gl/gl_surface_egl.cc
@@ -224,6 +224,11 @@ NativeViewGLSurfaceEGL::NativeViewGLSurfaceEGL(bool software,
bool NativeViewGLSurfaceEGL::Initialize() {
DCHECK(!surface_);
+ if (!window_) {
no sievers 2013/01/28 20:55:06 if (window_ == kNullAcceleratedWidget)
+ LOG(ERROR) << "Trying to create surface without window.";
+ return false;
+ }
+
if (!GetDisplay()) {
LOG(ERROR) << "Trying to create surface with invalid display.";
return false;

Powered by Google App Engine
This is Rietveld 408576698