Index: content/common/gpu/image_transport_surface_android.cc |
diff --git a/content/common/gpu/image_transport_surface_android.cc b/content/common/gpu/image_transport_surface_android.cc |
index f476f7554c472a8589fe08616dfd27da0ee4d72c..deda2fcd0bfccd666e18d832b87a5426c74c709d 100644 |
--- a/content/common/gpu/image_transport_surface_android.cc |
+++ b/content/common/gpu/image_transport_surface_android.cc |
@@ -23,7 +23,8 @@ scoped_refptr<gfx::GLSurface> ImageTransportSurface::CreateSurface( |
DCHECK(GpuSurfaceLookup::GetInstance()); |
ANativeWindow* window = GpuSurfaceLookup::GetInstance()->GetNativeWidget( |
stub->surface_id()); |
- DCHECK(window); |
+ if (!window) |
+ return NULL; // May happen after AwContents.destroy |
no sievers
2013/01/25 20:24:41
Usually I'd think that this implies a bug (such as
boliu
2013/01/25 21:27:02
Yes, the process is create awcontents->load about:
|
surface = new gfx::NativeViewGLSurfaceEGL(false, window); |
if (!surface.get() || !surface->Initialize()) |
return NULL; |