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

Unified Diff: media/base/pipeline_status.h

Issue 1873513003: Add video-rendering to mojo media pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 8 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/base/pipeline_status.h
diff --git a/media/base/pipeline_status.h b/media/base/pipeline_status.h
index 2f4b35945f619ae0c3bae8244ee9dc7852537895..f857160b82e2cad29080f8cc85ca8fa4449d6fd5 100644
--- a/media/base/pipeline_status.h
+++ b/media/base/pipeline_status.h
@@ -5,12 +5,13 @@
#ifndef MEDIA_BASE_PIPELINE_STATUS_H_
#define MEDIA_BASE_PIPELINE_STATUS_H_
-#include "base/callback.h"
-
#include <stdint.h>
#include <string>
+#include "base/callback.h"
+#include "ui/gfx/geometry/size.h"
+
namespace media {
// Status states for pipeline. All codes except PIPELINE_OK indicate errors.
@@ -64,6 +65,10 @@ struct PipelineStatistics {
// of all attributes since the last update.
typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB;
+// Used for updating video natural size; the passed value is the new natural
+// size of video frames being rendered.
+typedef base::Callback<void(const gfx::Size&)> NaturalSizeChangedCB;
xhwang 2016/04/20 16:58:48 PipelineStatus should stay in pipeline_status.h.
+
} // namespace media
#endif // MEDIA_BASE_PIPELINE_STATUS_H_

Powered by Google App Engine
This is Rietveld 408576698