Chromium Code Reviews| Index: content/common/gpu/omx_video_decode_accelerator.h |
| diff --git a/content/common/gpu/omx_video_decode_accelerator.h b/content/common/gpu/omx_video_decode_accelerator.h |
| index 5f8e324c69deeecc6de9f037c457b966b889fe33..a970326fa40390d8e16ab7532f336ea77c5567e4 100644 |
| --- a/content/common/gpu/omx_video_decode_accelerator.h |
| +++ b/content/common/gpu/omx_video_decode_accelerator.h |
| @@ -18,6 +18,7 @@ |
| #include "base/message_loop.h" |
| #include "base/shared_memory.h" |
| #include "media/video/video_decode_accelerator.h" |
| +#include "third_party/angle/include/EGL/egl.h" |
| #include "third_party/openmax/il/OMX_Component.h" |
| #include "third_party/openmax/il/OMX_Core.h" |
| #include "third_party/openmax/il/OMX_Video.h" |
| @@ -42,6 +43,8 @@ class OmxVideoDecodeAccelerator : public media::VideoDecodeAccelerator { |
| bool Flush() OVERRIDE; |
| bool Abort() OVERRIDE; |
| + void SetEglState(EGLDisplay egl_display, EGLContext egl_context); |
| + |
| private: |
| MessageLoop* message_loop_; |
| OMX_HANDLETYPE component_handle_; |
| @@ -103,6 +106,9 @@ class OmxVideoDecodeAccelerator : public media::VideoDecodeAccelerator { |
| int output_buffers_at_component_; |
| bool uses_egl_image_; |
| + EGLDisplay egl_display_; |
| + EGLContext egl_context_; |
|
vrk (LEFT CHROMIUM)
2011/06/03 07:55:24
Someday, one context will not be good enough! Toda
Ami GONE FROM CHROMIUM
2011/06/03 17:43:59
NOTE'd the former, TODO'd the latter.
|
| + |
| // Free input OpenMAX buffers that can be used to take bitstream from demuxer. |
| std::queue<OMX_BUFFERHEADERTYPE*> free_input_buffers_; |
| @@ -112,6 +118,7 @@ class OmxVideoDecodeAccelerator : public media::VideoDecodeAccelerator { |
| std::vector<OutputPicture> output_pictures_; |
| // To expose client callbacks from VideoDecodeAccelerator. |
| + // NOTE: all calls to this object *MUST* be executed in message_loop_. |
| Client* client_; |
| std::vector<uint32> texture_ids_; |