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

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

Issue 858653002: vaapi plumbing to allow hardware video overlays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unittests build Created 5 years, 11 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_drm_picture.h
diff --git a/content/common/gpu/media/vaapi_drm_picture.h b/content/common/gpu/media/vaapi_drm_picture.h
index 46c7304823535e6f8e244c92b75a1eb5310d10db..e982b595e8c20f1eaaf66911e77ece452c05e4ed 100644
--- a/content/common/gpu/media/vaapi_drm_picture.h
+++ b/content/common/gpu/media/vaapi_drm_picture.h
@@ -15,7 +15,7 @@
#include "ui/gfx/geometry/size.h"
namespace gfx {
-class GLImageLinuxDMABuffer;
+class GLImage;
}
namespace ui {
@@ -41,6 +41,10 @@ class VaapiDrmPicture : public VaapiPicture {
bool DownloadFromSurface(const scoped_refptr<VASurface>& va_surface) override;
+ scoped_refptr<gfx::GLImage> GetImageToBind() override;
+
+ bool AllowOverlay() const override;
+
private:
VaapiWrapper* vaapi_wrapper_; // Not owned.
base::Callback<bool(void)> make_context_current_;
@@ -49,7 +53,7 @@ class VaapiDrmPicture : public VaapiPicture {
scoped_refptr<ui::NativePixmap> pixmap_;
// EGLImage bound to the GL textures used by the VDA client.
- scoped_refptr<gfx::GLImageLinuxDMABuffer> gl_image_;
+ scoped_refptr<gfx::GLImage> gl_image_;
// VASurface used to transfer from the decoder's pixel format.
scoped_refptr<VASurface> va_surface_;
« no previous file with comments | « content/common/gpu/media/gpu_video_decode_accelerator.cc ('k') | content/common/gpu/media/vaapi_drm_picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698