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

Unified Diff: media/mojo/clients/mojo_video_decoder.h

Issue 2966643002: media: Plumb MediaLog to MojoVideoDecoderService. (Closed)
Patch Set: Swap client/service directory. Created 3 years, 5 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 | « media/mojo/clients/mojo_media_log_service.cc ('k') | media/mojo/clients/mojo_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/clients/mojo_video_decoder.h
diff --git a/media/mojo/clients/mojo_video_decoder.h b/media/mojo/clients/mojo_video_decoder.h
index 1f2f9f80a433e0115eb5e92e740d330d4300359a..c8d9d27c3c868b478e2d715d905dc8ff2c0af7a9 100644
--- a/media/mojo/clients/mojo_video_decoder.h
+++ b/media/mojo/clients/mojo_video_decoder.h
@@ -9,6 +9,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "media/base/video_decoder.h"
+#include "media/mojo/clients/mojo_media_log_service.h"
#include "media/mojo/interfaces/video_decoder.mojom.h"
#include "mojo/public/cpp/bindings/associated_binding.h"
@@ -19,6 +20,7 @@ class SingleThreadTaskRunner;
namespace media {
class GpuVideoAcceleratorFactories;
+class MediaLog;
class MojoDecoderBufferWriter;
// A VideoDecoder, for use in the renderer process, that proxies to a
@@ -30,6 +32,7 @@ class MojoVideoDecoder final : public VideoDecoder,
public:
MojoVideoDecoder(scoped_refptr<base::SingleThreadTaskRunner> task_runner,
GpuVideoAcceleratorFactories* gpu_factories,
+ MediaLog* media_log,
mojom::VideoDecoderPtr remote_decoder);
~MojoVideoDecoder() final;
@@ -87,7 +90,9 @@ class MojoVideoDecoder final : public VideoDecoder,
std::unique_ptr<MojoDecoderBufferWriter> mojo_decoder_buffer_writer_;
bool remote_decoder_bound_ = false;
bool has_connection_error_ = false;
- mojo::AssociatedBinding<VideoDecoderClient> client_binding_;
+ mojo::AssociatedBinding<mojom::VideoDecoderClient> client_binding_;
+ MojoMediaLogService media_log_service_;
+ mojo::AssociatedBinding<mojom::MediaLog> media_log_binding_;
bool initialized_ = false;
bool needs_bitstream_conversion_ = false;
« no previous file with comments | « media/mojo/clients/mojo_media_log_service.cc ('k') | media/mojo/clients/mojo_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698