| Index: content/common/gpu/media/vaapi_wrapper.cc
|
| diff --git a/content/common/gpu/media/vaapi_wrapper.cc b/content/common/gpu/media/vaapi_wrapper.cc
|
| index b08aa039d209f913c59b041cef80c57726479e91..b1b4d3055f771d9d2afefe26f843fa0e2f8e48bd 100644
|
| --- a/content/common/gpu/media/vaapi_wrapper.cc
|
| +++ b/content/common/gpu/media/vaapi_wrapper.cc
|
| @@ -114,8 +114,12 @@ static std::vector<VAConfigAttrib> GetRequiredAttribs(
|
|
|
| VASurface::VASurface(VASurfaceID va_surface_id,
|
| const gfx::Size& size,
|
| + const unsigned int format,
|
| const ReleaseCB& release_cb)
|
| - : va_surface_id_(va_surface_id), size_(size), release_cb_(release_cb) {
|
| + : va_surface_id_(va_surface_id),
|
| + size_(size),
|
| + format_(format),
|
| + release_cb_(release_cb) {
|
| DCHECK(!release_cb_.is_null());
|
| }
|
|
|
| @@ -579,7 +583,7 @@ scoped_refptr<VASurface> VaapiWrapper::CreateUnownedSurface(
|
| // of the destruction order. All the surfaces will be destroyed
|
| // before VaapiWrapper.
|
| va_surface = new VASurface(
|
| - va_surface_id, size,
|
| + va_surface_id, size, va_format,
|
| base::Bind(&VaapiWrapper::DestroyUnownedSurface, base::Unretained(this)));
|
|
|
| return va_surface;
|
|
|