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

Unified Diff: media/video/video_decode_accelerator.h

Issue 1490333005: Don't require VDAs to return all PictureBuffers at once. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ...because trybots have feelings too. Created 5 years 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/video/video_decode_accelerator.h
diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h
index e2bcdf64855fdf3455fc0a3b73ae2b59c2e928e6..71c76db9e30fb0c30bd0b66c1e3176292d3db707 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -34,6 +34,22 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
};
using SupportedProfiles = std::vector<SupportedProfile>;
+ struct MEDIA_EXPORT Capabilities {
+ Capabilities();
+ ~Capabilities();
+ // Flags that can be associated with a VDA.
+ enum Flags {
+ NO_FLAGS = 0,
+
+ // If set, then the VDA makes no guarantees that it won't stall before
+ // sending all the picture buffers to the client via PictureReady.
+ CAN_STALL_ANY_TIME = 1 << 0,
Pawel Osciak 2015/12/05 00:18:55 My feeling is that "stall" is a very specific term
liberato (no reviews please) 2015/12/07 19:04:40 i agree that it is rather specific. i chose the n
+ };
+
+ SupportedProfiles supported_profiles;
+ Flags flags;
+ };
+
// Enumeration of potential errors generated by the API.
// Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not
// rearrange, reuse or remove values as they are used for gathering UMA

Powered by Google App Engine
This is Rietveld 408576698