Index: content/common/gpu/media/omx_video_decode_accelerator.h |
=================================================================== |
--- content/common/gpu/media/omx_video_decode_accelerator.h (revision 127422) |
+++ content/common/gpu/media/omx_video_decode_accelerator.h (working copy) |
@@ -25,6 +25,8 @@ |
#include "third_party/openmax/il/OMX_Core.h" |
#include "third_party/openmax/il/OMX_Video.h" |
+class Gles2TextureToEglImageTranslator; |
+ |
// Class to wrap OpenMAX IL accelerator behind VideoDecodeAccelerator interface. |
// The implementation assumes an OpenMAX IL 1.1.2 implementation conforming to |
// http://www.khronos.org/registry/omxil/specs/OpenMAX_IL_1_1_2_Specification.pdf |
@@ -87,6 +89,7 @@ |
bool CreateComponent(); |
// Buffer allocation/free methods for input and output buffers. |
bool AllocateInputBuffers(); |
+ bool AllocateFakeOutputBuffers(); |
bool AllocateOutputBuffers(); |
void FreeInputBuffers(); |
void FreeOutputBuffers(); |
@@ -148,6 +151,8 @@ |
OMX_U32 output_port_; |
int output_buffers_at_component_; |
+ gfx::Size last_requested_picture_buffer_dimensions_; |
+ |
// NOTE: someday there may be multiple contexts for a single decoder. But not |
// today. |
// TODO(fischman,vrk): handle lost contexts? |
@@ -179,7 +184,9 @@ |
// NOTE: all calls to this object *MUST* be executed in message_loop_. |
Client* client_; |
- // These two members are only used during Initialization. |
+ scoped_ptr<Gles2TextureToEglImageTranslator> texture_to_egl_image_translator_; |
+ |
+ // These members are only used during Initialization. |
// OMX_AVCProfile requested during Initialization. |
uint32 profile_; |
bool component_name_is_nvidia_h264ext_; |