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

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

Issue 2096063003: media: Add MojoDecoderBuffer{Reader|Writer} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 4 years, 6 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: 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 5f4ed30a11e865115f67e79543be931960cdbfd9..e601ddc5688d9996aec650be2d83672dae21f6ce 100644
--- a/media/mojo/clients/mojo_video_decoder.h
+++ b/media/mojo/clients/mojo_video_decoder.h
@@ -10,7 +10,6 @@
#include "media/base/video_decoder.h"
#include "media/mojo/interfaces/video_decoder.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
-#include "mojo/public/cpp/system/data_pipe.h"
namespace base {
class SingleThreadTaskRunner;
@@ -19,6 +18,7 @@ class SingleThreadTaskRunner;
namespace media {
class GpuVideoAcceleratorFactories;
+class MojoDecoderBufferWriter;
// A VideoDecoder, for use in the renderer process, that proxies to a
// mojom::VideoDecoder. It is assumed that the other side will be implemented by
@@ -70,7 +70,7 @@ class MojoVideoDecoder final : public VideoDecoder,
base::Closure reset_cb_;
mojom::VideoDecoderPtr remote_decoder_;
- mojo::ScopedDataPipeProducerHandle decoder_buffer_pipe_;
+ std::unique_ptr<MojoDecoderBufferWriter> mojo_decoder_buffer_writer_;
bool remote_decoder_bound_ = false;
bool has_connection_error_ = false;
mojo::Binding<VideoDecoderClient> binding_;

Powered by Google App Engine
This is Rietveld 408576698