| Index: content/common/gpu/media/vaapi_h264_decoder.h
|
| diff --git a/content/common/gpu/media/vaapi_h264_decoder.h b/content/common/gpu/media/vaapi_h264_decoder.h
|
| index a2f6ab087db7425160ba1885c14e520e6c707701..1b992f7e5cb8993f4edd96cdc59d716e621b6f60 100644
|
| --- a/content/common/gpu/media/vaapi_h264_decoder.h
|
| +++ b/content/common/gpu/media/vaapi_h264_decoder.h
|
| @@ -129,6 +129,13 @@ class VaapiH264Decoder {
|
| // Valid after a successful DecodeInitial().
|
| static size_t GetRequiredNumOfPictures();
|
|
|
| + // Do any necessary initialization before the sandbox is enabled.
|
| + static void PreSandboxInitialization();
|
| +
|
| + // Lazily initialize static data after sandbox is enabled. Return false on
|
| + // init failure.
|
| + static bool PostSandboxInitialization();
|
| +
|
| private:
|
| // We need to keep at least kDPBMaxSize pictures in DPB for
|
| // reference/to display later and an additional one for the one currently
|
| @@ -329,6 +336,9 @@ class VaapiH264Decoder {
|
| // Called by decoder when a picture should be outputted.
|
| OutputPicCB output_pic_cb_;
|
|
|
| + // Has static initialization of pre-sandbox components completed successfully?
|
| + static bool pre_sandbox_init_done_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(VaapiH264Decoder);
|
| };
|
|
|
|
|