Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Unified Diff: content/common/gpu/media/vaapi_tfp_picture.h

Issue 1432963003: [Ozone] Extends the lifetime of VaapiWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NOT for upstream Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/vaapi_tfp_picture.h
diff --git a/content/common/gpu/media/vaapi_tfp_picture.h b/content/common/gpu/media/vaapi_tfp_picture.h
index fdc2c64b723a355122d42b8da37c051b35471fe8..98d78b1af1e07ddf395869a99ac348e737606aa0 100644
--- a/content/common/gpu/media/vaapi_tfp_picture.h
+++ b/content/common/gpu/media/vaapi_tfp_picture.h
@@ -30,7 +30,7 @@ class VaapiWrapper;
// Implementation of VaapiPicture for the X11 backed chromium.
class VaapiTFPPicture : public VaapiPicture {
public:
- VaapiTFPPicture(VaapiWrapper* vaapi_wrapper,
+ VaapiTFPPicture(scoped_refptr<VaapiWrapper> vaapi_wrapper,
Pawel Osciak 2015/11/16 04:24:35 const&
const base::Callback<bool(void)> make_context_current,
int32 picture_buffer_id,
uint32 texture_id,
@@ -45,7 +45,7 @@ class VaapiTFPPicture : public VaapiPicture {
scoped_refptr<gl::GLImage> GetImageToBind() override;
private:
- VaapiWrapper* vaapi_wrapper_; // Not owned.
+ scoped_refptr<VaapiWrapper> vaapi_wrapper_;
base::Callback<bool(void)> make_context_current_;
Display* x_display_;

Powered by Google App Engine
This is Rietveld 408576698