| Index: content/browser/media/android/browser_surface_view_manager.h
|
| diff --git a/content/browser/media/android/browser_surface_view_manager.h b/content/browser/media/android/browser_surface_view_manager.h
|
| index df6b2594581ccab43d49fed0ec795a0ff3f0fc93..9f80e801e11f2a35a1e994ccc5fb16f36d9a90b2 100644
|
| --- a/content/browser/media/android/browser_surface_view_manager.h
|
| +++ b/content/browser/media/android/browser_surface_view_manager.h
|
| @@ -37,6 +37,14 @@ class CONTENT_EXPORT BrowserSurfaceViewManager
|
| // Send a message to return the surface id to the caller.
|
| bool SendSurfaceID(int surface_id);
|
|
|
| + // Synchronously notify the decoder that the surface is being destroyed so
|
| + // it can stop rendering to it. Without this, the MediaCodec decoder will
|
| + // start throwing IllegalStateException, and crash on some devices
|
| + // (http://crbug.com/598408). There is no way for us to make sure the surface
|
| + // outlives the decoder because Android initiates the destruction in some
|
| + // cases.
|
| + void SendDestroyingVideoSurface(int surface_id);
|
| +
|
| RenderFrameHost* const render_frame_host_;
|
|
|
| // The surface id of the ContentVideoView surface.
|
|
|