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

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

Issue 2951233002: media: Implement MojoVideoDecoder::CanReadWithoutStalling(). (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | 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 ebd96b336acb73a716d3c04da9cf5b9055dc95b2..1f2f9f80a433e0115eb5e92e740d330d4300359a 100644
--- a/media/mojo/clients/mojo_video_decoder.h
+++ b/media/mojo/clients/mojo_video_decoder.h
@@ -50,6 +50,7 @@ class MojoVideoDecoder final : public VideoDecoder,
// mojom::VideoDecoderClient implementation.
void OnVideoFrameDecoded(
const scoped_refptr<VideoFrame>& frame,
+ bool can_read_without_stalling,
const base::Optional<base::UnguessableToken>& release_token) final;
private:
@@ -90,6 +91,7 @@ class MojoVideoDecoder final : public VideoDecoder,
bool initialized_ = false;
bool needs_bitstream_conversion_ = false;
+ bool can_read_without_stalling_ = true;
int32_t max_decode_requests_ = 1;
base::WeakPtr<MojoVideoDecoder> weak_this_;
« no previous file with comments | « no previous file | media/mojo/clients/mojo_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698