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

Unified Diff: media/cast/sender/video_frame_factory_pool_impl.cc

Issue 688423003: [Cast] VideoFrameFactory interface to vend frames with encoder affinity. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month 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/sender/video_frame_factory_pool_impl.cc
diff --git a/media/cast/sender/video_frame_factory_pool_impl.cc b/media/cast/sender/video_frame_factory_pool_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..deba933c92aebd1156ea04133f407f0aa670ba0f
--- /dev/null
+++ b/media/cast/sender/video_frame_factory_pool_impl.cc
@@ -0,0 +1,25 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "media/cast/sender/video_frame_factory_pool_impl.h"
+
+namespace media {
+namespace cast {
+
+VideoFrameFactoryPoolImpl::VideoFrameFactoryPoolImpl(
+ const VideoSenderConfig& video_config)
+ : width_(video_config.width), height_(video_config.height) {
+}
+
+scoped_refptr<VideoFrame> VideoFrameFactoryPoolImpl::CreateFrame(
+ base::TimeDelta timestamp) {
+ return pool_.CreateFrame(VideoFrame::Format::I420,
+ gfx::Size(width_, height_),
+ gfx::Rect(0, 0, width_, height_),
+ gfx::Size(width_, height_),
+ timestamp);
+}
+
+} // namespace cast
+} // namespace media

Powered by Google App Engine
This is Rietveld 408576698