Index: content/common/gpu/media/omx_video_decode_accelerator.h |
=================================================================== |
--- content/common/gpu/media/omx_video_decode_accelerator.h (revision 120554) |
+++ content/common/gpu/media/omx_video_decode_accelerator.h (working copy) |
@@ -49,7 +49,8 @@ |
void Reset() OVERRIDE; |
void Destroy() OVERRIDE; |
- void SetEglState(EGLDisplay egl_display, EGLContext egl_context); |
+ void SetEglState(Display* x_display, EGLDisplay egl_display, |
+ EGLContext egl_context, EGLSurface egl_surface); |
private: |
virtual ~OmxVideoDecodeAccelerator(); |
@@ -151,8 +152,10 @@ |
// NOTE: someday there may be multiple contexts for a single decoder. But not |
// today. |
// TODO(fischman,vrk): handle lost contexts? |
+ Display* x_display_; |
EGLDisplay egl_display_; |
EGLContext egl_context_; |
+ EGLSurface egl_surface_; |
// Free input OpenMAX buffers that can be used to take bitstream from demuxer. |
std::queue<OMX_BUFFERHEADERTYPE*> free_input_buffers_; |
@@ -183,6 +186,7 @@ |
// OMX_AVCProfile requested during Initialization. |
uint32 profile_; |
bool component_name_is_nvidia_h264ext_; |
+ bool component_name_is_sec_h264ext_; |
// Method to handle events |
void EventHandlerCompleteTask(OMX_EVENTTYPE event, |