| Index: content/common/gpu/media/vaapi_drm_picture.cc
|
| diff --git a/content/common/gpu/media/vaapi_drm_picture.cc b/content/common/gpu/media/vaapi_drm_picture.cc
|
| index ab5a4f28b1a673ad5d17ba03249240c91a1e31a8..f20716426fd0efef47d753d0cb30a3a60508793f 100644
|
| --- a/content/common/gpu/media/vaapi_drm_picture.cc
|
| +++ b/content/common/gpu/media/vaapi_drm_picture.cc
|
| @@ -27,16 +27,16 @@
|
|
|
| VaapiDrmPicture::VaapiDrmPicture(
|
| const scoped_refptr<VaapiWrapper>& vaapi_wrapper,
|
| - const MakeGLContextCurrentCallback& make_context_current_cb,
|
| + const base::Callback<bool(void)>& make_context_current,
|
| int32_t picture_buffer_id,
|
| uint32_t texture_id,
|
| const gfx::Size& size)
|
| : VaapiPicture(picture_buffer_id, texture_id, size),
|
| vaapi_wrapper_(vaapi_wrapper),
|
| - make_context_current_cb_(make_context_current_cb) {}
|
| + make_context_current_(make_context_current) {}
|
|
|
| VaapiDrmPicture::~VaapiDrmPicture() {
|
| - if (gl_image_ && make_context_current_cb_.Run()) {
|
| + if (gl_image_ && make_context_current_.Run()) {
|
| gl_image_->ReleaseTexImage(GL_TEXTURE_EXTERNAL_OES);
|
| gl_image_->Destroy(true);
|
|
|
| @@ -67,7 +67,7 @@
|
| pixmap_->SetProcessingCallback(
|
| base::Bind(&VaapiWrapper::ProcessPixmap, vaapi_wrapper_));
|
|
|
| - if (!make_context_current_cb_.Run())
|
| + if (!make_context_current_.Run())
|
| return false;
|
|
|
| gfx::ScopedTextureBinder texture_binder(GL_TEXTURE_EXTERNAL_OES,
|
|
|