Chromium Code Reviews| Index: media/gpu/vaapi_video_encode_accelerator.h |
| diff --git a/media/gpu/vaapi_video_encode_accelerator.h b/media/gpu/vaapi_video_encode_accelerator.h |
| index 1d5fb9d161ff06bde94cecade20d1e3643eb528d..bc4e3ca51b0b5cb00128e1d0c8962b96801975f5 100644 |
| --- a/media/gpu/vaapi_video_encode_accelerator.h |
| +++ b/media/gpu/vaapi_video_encode_accelerator.h |
| @@ -73,6 +73,8 @@ class MEDIA_GPU_EXPORT VaapiVideoEncodeAccelerator |
| // True if this job will produce a keyframe. Used to report |
| // to BitstreamBufferReady(). |
| bool keyframe; |
| + // Captured timestamp. |
|
Pawel Osciak
2016/05/27 04:46:38
Nit: this doesn't have to be "captured". Let's say
shenghao
2016/05/30 09:18:02
Done.
|
| + base::TimeDelta timestamp; |
| EncodeJob(); |
| ~EncodeJob(); |
| @@ -118,7 +120,7 @@ class MEDIA_GPU_EXPORT VaapiVideoEncodeAccelerator |
| // Check if we have sufficient resources for a new encode job, claim them and |
| // fill current_encode_job_ with them. |
| // Return false if we cannot start a new job yet, true otherwise. |
| - bool PrepareNextJob(); |
| + bool PrepareNextJob(base::TimeDelta timestamp); |
| // Begin a new frame, making it a keyframe if |force_keyframe| is true, |
| // updating current_pic_. |