Index: content/common/gpu/media/v4l2_video_decode_accelerator.h |
diff --git a/content/common/gpu/media/v4l2_video_decode_accelerator.h b/content/common/gpu/media/v4l2_video_decode_accelerator.h |
index 0c6a4930714de29f9a10d33975255dc90d011f26..3665fea48784f243755c41d79e6350e5381f6df7 100644 |
--- a/content/common/gpu/media/v4l2_video_decode_accelerator.h |
+++ b/content/common/gpu/media/v4l2_video_decode_accelerator.h |
@@ -294,6 +294,13 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator |
// Callback that indicates a picture has been cleared. |
void PictureCleared(); |
+ // This method determines whether a resolution change event processing |
+ // is indeed required by returning true if either: |
+ // - width or height of the new format is different than previous format. |
+ // - V4L2_CID_MIN_BUFFERS_FOR_CAPTURE has changed. |
+ // Returns false otherwise. |
+ bool IsResolutionChangeNecessary(); |
+ |
// Our original calling message loop for the child thread. |
scoped_refptr<base::MessageLoopProxy> child_message_loop_proxy_; |