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

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: TODO instead of FIXME 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
« no previous file with comments | « content/common/gpu/media/gpu_video_decode_accelerator.cc ('k') | media/video/video_decode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..547e1bb12de64079a44b8d7be08c944af23d1933 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.
+ // TODO(dshwang): after moving to D3D11, remove this. crbug.com/438691
+ 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.
« no previous file with comments | « content/common/gpu/media/gpu_video_decode_accelerator.cc ('k') | media/video/video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698