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

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: cc plumbing going in first, so put the link back in 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/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 98833c0e03f8488501449d3429ff2dc86fa7b01d..b30412218ed34cd40a29a56d38007b296a36014e 100644
--- a/content/common/gpu/media/video_decode_accelerator_unittest.cc
+++ b/content/common/gpu/media/video_decode_accelerator_unittest.cc
@@ -298,6 +298,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);
@@ -479,16 +483,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());

Powered by Google App Engine
This is Rietveld 408576698