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

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: comments 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
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 350bd517c4dc128a61f16ebd046264c557746996..650ecac93e2fda114daf33d6dc4fb3c8a2632e23 100644
--- a/media/cast/test/utility/default_config.cc
+++ b/media/cast/test/utility/default_config.cc
@@ -4,8 +4,25 @@
#include "media/cast/test/utility/default_config.h"
+#include "base/bind.h"
#include "media/cast/transport/cast_transport_config.h"
+namespace {
+
+void CreateVideoEncodeAccelerator(const base::Callback<
pwestin 2014/03/21 21:02:02 Use the proposed typedef
Alpha Left Google 2014/03/21 21:37:12 Done.
+ void(scoped_refptr<base::SingleThreadTaskRunner>,
+ scoped_ptr<media::VideoEncodeAccelerator>)>& callback) {
+ // Do nothing.
+}
+
+void CreateVideoEncodeMemory(
+ size_t size,
+ const base::Callback<void(scoped_ptr<base::SharedMemory>)>& callback) {
pwestin 2014/03/21 21:02:02 Use the proposed typedef
Alpha Left Google 2014/03/21 21:37:12 Done.
+ // Do nothing.
+}
+
+} // namespace
+
namespace media {
namespace cast {
@@ -33,5 +50,14 @@ VideoReceiverConfig GetDefaultVideoReceiverConfig() {
return config;
}
+CreateVideoEncodeAcceleratorCallback
+CreateDefaultVideoEncodeAcceleratorCallback() {
+ return base::Bind(&CreateVideoEncodeAccelerator);
+}
+
+CreateVideoEncodeMemoryCallback CreateDefaultVideoEncodeMemoryCallback() {
+ return base::Bind(&CreateVideoEncodeMemory);
+}
+
} // namespace cast
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698