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

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

Issue 1745903002: Introduce GpuVideoDecodeAcceleratorFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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 3b66e10800bb9a3444da6763f6a852db50c0c849..475534e0011099ed8d7cef24ab61d2dbec26d951 100644
--- a/content/common/gpu/media/vaapi_tfp_picture.h
+++ b/content/common/gpu/media/vaapi_tfp_picture.h
@@ -11,7 +11,6 @@
#include <stdint.h>
-#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "content/common/gpu/media/vaapi_picture.h"
@@ -33,11 +32,12 @@ class VaapiWrapper;
// Implementation of VaapiPicture for the X11 backed chromium.
class VaapiTFPPicture : public VaapiPicture {
public:
- VaapiTFPPicture(const scoped_refptr<VaapiWrapper>& vaapi_wrapper,
- const base::Callback<bool(void)> make_context_current,
- int32_t picture_buffer_id,
- uint32_t texture_id,
- const gfx::Size& size);
+ VaapiTFPPicture(
+ const scoped_refptr<VaapiWrapper>& vaapi_wrapper,
+ const gpu_vda_helpers::MakeGLContextCurrentCb& make_context_current_cb,
+ int32_t picture_buffer_id,
+ uint32_t texture_id,
+ const gfx::Size& size);
~VaapiTFPPicture() override;
@@ -50,7 +50,7 @@ class VaapiTFPPicture : public VaapiPicture {
private:
scoped_refptr<VaapiWrapper> vaapi_wrapper_;
- base::Callback<bool(void)> make_context_current_;
+ gpu_vda_helpers::MakeGLContextCurrentCb make_context_current_cb_;
Display* x_display_;
Pixmap x_pixmap_;

Powered by Google App Engine
This is Rietveld 408576698