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

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

Issue 858653002: vaapi plumbing to allow hardware video overlays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change bool to virtual fn 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_picture.h
diff --git a/content/common/gpu/media/vaapi_picture.h b/content/common/gpu/media/vaapi_picture.h
index 44d9db733f91097c66a0abfe237483dafc544959..ad43dfa3af303270cb0be47a8b1fbe09b662511c 100644
--- a/content/common/gpu/media/vaapi_picture.h
+++ b/content/common/gpu/media/vaapi_picture.h
@@ -16,6 +16,10 @@
#include "base/threading/non_thread_safe.h"
#include "ui/gfx/geometry/size.h"
+namespace gfx {
+class GLImage;
+}
+
namespace content {
class VASurface;
@@ -33,6 +37,11 @@ class VaapiPicture : public base::NonThreadSafe {
uint32 texture_id() const { return texture_id_; }
const gfx::Size& size() const { return size_; }
+ virtual bool AllowOverlay() const;
Pawel Osciak 2015/01/28 23:52:02 Please document.
+
+ // Returns the |GLImage|, if any, to bind to the texture.
+ virtual scoped_refptr<gfx::GLImage> GetImageToBind() = 0;
+
// Downloads the |va_surface| into the picture, potentially scaling
// it if needed.
virtual bool DownloadFromSurface(

Powered by Google App Engine
This is Rietveld 408576698