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

Unified Diff: content/common/gpu/media/android_video_decode_accelerator.h

Issue 1706023003: Moving the validation of bitstream_buffer into VDA implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ready for review Created 4 years, 10 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/android_video_decode_accelerator.h
diff --git a/content/common/gpu/media/android_video_decode_accelerator.h b/content/common/gpu/media/android_video_decode_accelerator.h
index e70c09ee0dd354692b7a7257b28dae76690b8f8c..a98fb9cf15e0b01ab9fe59c2b8e0f168708dfec0 100644
--- a/content/common/gpu/media/android_video_decode_accelerator.h
+++ b/content/common/gpu/media/android_video_decode_accelerator.h
@@ -166,6 +166,10 @@ class CONTENT_EXPORT AndroidVideoDecodeAccelerator
// Requests picture buffers from the client.
void RequestPictureBuffers();
+ // Internal version of Decode(), which allows -1 as the id of the
+ // |bitstream_buffer| to indicate the trigger of flush command.
+ void DecodeInternal(const media::BitstreamBuffer& bitstream_buffer);
+
// This callback is called after CDM obtained a MediaCrypto object.
void OnMediaCryptoReady(media::MediaDrmBridge::JavaObjectPtr media_crypto,
bool needs_protected_surface);

Powered by Google App Engine
This is Rietveld 408576698