Thanks for hint. This part of code is copied from `src/content/common/gpu/media/vaapi_wrapper.cc`. I'll try to do same thing on upstream. If that is acceptable, I'll do it here.