| 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 8f374186338585569859286334c7698daf270d3c..79a16c0bbdf31687d8d446419e8e2889f6bd4bec 100644
|
| --- a/content/common/gpu/image_transport_surface_android.cc
|
| +++ b/content/common/gpu/image_transport_surface_android.cc
|
| @@ -24,12 +24,14 @@ scoped_refptr<gfx::GLSurface> ImageTransportSurface::CreateNativeSurface(
|
| DCHECK_EQ(handle.transport_type, gfx::NATIVE_DIRECT);
|
| ANativeWindow* window =
|
| GpuSurfaceLookup::GetInstance()->AcquireNativeWidget(handle.handle);
|
| - CHECK(window) << "Failed to retrieve window handle.";
|
| + if (!window) {
|
| + LOG(WARNING) << "Failed to acquire native widget.";
|
| + return scoped_refptr<gfx::GLSurface>();
|
| + }
|
| scoped_refptr<gfx::GLSurface> surface =
|
| new gfx::NativeViewGLSurfaceEGL(window);
|
| bool initialize_success = surface->Initialize();
|
| - if (window)
|
| - ANativeWindow_release(window);
|
| + ANativeWindow_release(window);
|
| if (!initialize_success)
|
| return scoped_refptr<gfx::GLSurface>();
|
|
|
|
|