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

Unified Diff: media/video/video_decode_accelerator.h

Issue 775863005: gpu: Make GPU command decoder know right format of a GPU video texture in Win. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forward declaration of GLenum Created 6 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
Index: media/video/video_decode_accelerator.h
diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h
index 4df3b1c915836ef4dee55690d6a6880c3d1b24de..13deb2003ef4399fa2b8d83986b0feb9a91dbe27 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -13,6 +13,8 @@
#include "media/video/picture.h"
#include "ui/gfx/size.h"
+typedef unsigned int GLenum;
+
namespace media {
// Video decoder interface.
@@ -143,6 +145,10 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// the first time so it can be cleared.
virtual bool CanDecodeOnIOThread();
+ // Windows creates a BGRA texture.
+ // FIXME: after moving to D3D11, remove this workaround. crbug.com/438691
scherkus (not reviewing) 2014/12/08 22:51:36 ditto
+ virtual GLenum GetSurfaceInternalFormat() const;
+
protected:
// Do not delete directly; use Destroy() or own it with a scoped_ptr, which
// will Destroy() it properly by default.

Powered by Google App Engine
This is Rietveld 408576698