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

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: Created 5 years 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
« no previous file with comments | « content/common/gpu/media/vaapi_picture.cc ('k') | content/common/gpu/media/vaapi_tfp_picture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bc7f2e3e7751e20200d8060de6039fb8f4624bae 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(const scoped_refptr<VaapiWrapper>& vaapi_wrapper,
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_;
« no previous file with comments | « content/common/gpu/media/vaapi_picture.cc ('k') | content/common/gpu/media/vaapi_tfp_picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698