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

Unified Diff: content/common/gpu/media/video_decode_accelerator_unittest.cc

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
« no previous file with comments | « content/common/gpu/media/vaapi_video_decode_accelerator.cc ('k') | media/video/picture.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/video_decode_accelerator_unittest.cc
diff --git a/content/common/gpu/media/video_decode_accelerator_unittest.cc b/content/common/gpu/media/video_decode_accelerator_unittest.cc
index a028f98fbc61743edfdd50f3570bafc24a83ddcc..e7cc253729fcb8d8fdd9e6bba9926ba86fe55753 100644
--- a/content/common/gpu/media/video_decode_accelerator_unittest.cc
+++ b/content/common/gpu/media/video_decode_accelerator_unittest.cc
@@ -52,6 +52,7 @@
#include "content/public/common/content_switches.h"
#include "media/filters/h264_parser.h"
#include "ui/gfx/codec/png_codec.h"
+#include "ui/gl/gl_image.h"
#if defined(OS_WIN)
#include "base/win/windows_version.h"
@@ -334,6 +335,10 @@ class GLRenderingVDAClient
scoped_ptr<media::VideoDecodeAccelerator> CreateV4L2SliceVDA();
scoped_ptr<media::VideoDecodeAccelerator> CreateVaapiVDA();
+ void BindImage(uint32 client_texture_id,
+ uint32 texture_target,
+ scoped_refptr<gfx::GLImage> image);
+
void SetState(ClientState new_state);
void FinishInitialization();
void ReturnPicture(int32 picture_buffer_id);
@@ -515,16 +520,23 @@ GLRenderingVDAClient::CreateV4L2SliceVDA() {
#endif
return decoder.Pass();
}
+
scoped_ptr<media::VideoDecodeAccelerator>
GLRenderingVDAClient::CreateVaapiVDA() {
scoped_ptr<media::VideoDecodeAccelerator> decoder;
#if defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)
- decoder.reset(
- new VaapiVideoDecodeAccelerator(base::Bind(&DoNothingReturnTrue)));
+ decoder.reset(new VaapiVideoDecodeAccelerator(
+ base::Bind(&DoNothingReturnTrue),
+ base::Bind(&GLRenderingVDAClient::BindImage, base::Unretained(this))));
#endif
return decoder.Pass();
}
+void GLRenderingVDAClient::BindImage(uint32 client_texture_id,
+ uint32 texture_target,
+ scoped_refptr<gfx::GLImage> image) {
+}
+
void GLRenderingVDAClient::CreateAndStartDecoder() {
CHECK(decoder_deleted());
CHECK(!decoder_.get());
« no previous file with comments | « content/common/gpu/media/vaapi_video_decode_accelerator.cc ('k') | media/video/picture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698