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

Unified Diff: media/cast/test/utility/default_config.cc

Issue 207593002: Cast: Enable use of VideoEncodeAccelerator for hardware video encoding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typedef Created 6 years, 9 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 | « media/cast/test/utility/default_config.h ('k') | media/cast/video_sender/external_video_encoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/utility/default_config.cc
diff --git a/media/cast/test/utility/default_config.cc b/media/cast/test/utility/default_config.cc
index 34eaedc3de27bc1215c834517f08e1eefc8ed0e8..1631bfe86b5660e176a2b4d69aa6487020084b83 100644
--- a/media/cast/test/utility/default_config.cc
+++ b/media/cast/test/utility/default_config.cc
@@ -4,8 +4,24 @@
#include "media/cast/test/utility/default_config.h"
+#include "base/bind.h"
#include "media/cast/transport/cast_transport_config.h"
+namespace {
+
+void CreateVideoEncodeAccelerator(
+ const media::cast::ReceiveVideoEncodeAcceleratorCallback& callback) {
+ // Do nothing.
+}
+
+void CreateVideoEncodeMemory(
+ size_t size,
+ const media::cast::ReceiveVideoEncodeMemoryCallback& callback) {
+ // Do nothing.
+}
+
+} // namespace
+
namespace media {
namespace cast {
@@ -33,5 +49,14 @@ VideoReceiverConfig GetDefaultVideoReceiverConfig() {
return config;
}
+CreateVideoEncodeAcceleratorCallback
+CreateDefaultVideoEncodeAcceleratorCallback() {
+ return base::Bind(&CreateVideoEncodeAccelerator);
+}
+
+CreateVideoEncodeMemoryCallback CreateDefaultVideoEncodeMemoryCallback() {
+ return base::Bind(&CreateVideoEncodeMemory);
+}
+
} // namespace cast
} // namespace media
« no previous file with comments | « media/cast/test/utility/default_config.h ('k') | media/cast/video_sender/external_video_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698