Index: content/common/gpu/media/exynos_video_decode_accelerator.h |
diff --git a/content/common/gpu/media/exynos_video_decode_accelerator.h b/content/common/gpu/media/exynos_video_decode_accelerator.h |
index 7bb41bba94be84b8194ae05aa0c59188d2e3dff4..dd0989d14fd32aecac2467b539a276ad47df8b1e 100644 |
--- a/content/common/gpu/media/exynos_video_decode_accelerator.h |
+++ b/content/common/gpu/media/exynos_video_decode_accelerator.h |
@@ -19,6 +19,7 @@ |
#include "content/common/gpu/media/video_decode_accelerator_impl.h" |
#include "media/base/limits.h" |
#include "media/base/video_decoder_config.h" |
+#include "media/video/picture.h" |
#include "ui/gfx/size.h" |
#include "ui/gl/gl_bindings.h" |
@@ -177,6 +178,7 @@ class CONTENT_EXPORT ExynosVideoDecodeAccelerator |
EGLImageKHR egl_image; // backing EGLImage. |
EGLSyncKHR egl_sync; // sync the compositor's use of the EGLImage. |
int32 picture_id; // picture buffer id as returned to PictureReady(). |
+ bool cleared; // the texture has been cleared |
}; |
// |
@@ -316,6 +318,12 @@ class CONTENT_EXPORT ExynosVideoDecodeAccelerator |
void DestroyGscOutputBuffers(); |
void ResolutionChangeDestroyBuffers(); |
+ // Send decoded buffers to PictureReady. |
+ void SendPictureReady(); |
+ |
+ // Callback that indicates a picture has been cleared. |
+ void PictureCleared(); |
+ |
// Our original calling message loop for the child thread. |
scoped_refptr<base::MessageLoopProxy> child_message_loop_proxy_; |
@@ -437,6 +445,12 @@ class CONTENT_EXPORT ExynosVideoDecodeAccelerator |
// Mapping of int index to GSC output buffer record. |
std::vector<GscOutputRecord> gsc_output_buffer_map_; |
+ // Pictures that are ready but not sent to PictureReady yet. |
+ std::queue<std::pair<bool, media::Picture> > pending_picture_ready_; |
Ami GONE FROM CHROMIUM
2013/09/30 18:03:03
Doco what the bool is
piman
2013/09/30 21:49:13
nit: Better yet, make it a struct with explicit fi
wuchengli
2013/10/01 03:49:43
Done.
|
+ |
+ // The number of pictures that are sent to PictureReady and will be cleared. |
+ int picture_clearing_count_; |
+ |
// Output picture size. |
gfx::Size frame_buffer_size_; |