content: Add DeletedGpuMemoryBuffer IPC.
[chromium-blink-merge.git] / remoting / protocol / video_writer.cc
blob736e8ec0ec1db4c44a8b7acd89ecac2aed2ede6e
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "remoting/protocol/video_writer.h"
7 #include "remoting/protocol/session_config.h"
8 #include "remoting/protocol/protobuf_video_writer.h"
10 namespace remoting {
11 namespace protocol {
13 VideoWriter::~VideoWriter() { }
15 // static
16 scoped_ptr<VideoWriter> VideoWriter::Create(const SessionConfig& config) {
17 const ChannelConfig& video_config = config.video_config();
18 if (video_config.transport == ChannelConfig::TRANSPORT_STREAM) {
19 return scoped_ptr<VideoWriter>(new ProtobufVideoWriter());
21 return scoped_ptr<VideoWriter>();
24 } // namespace protocol
25 } // namespace remoting