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

Unified Diff: remoting/client/rectangle_update_decoder.cc

Issue 23477059: Simplify VideoEncoder interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « no previous file | remoting/codec/audio_decoder.cc » ('j') | remoting/codec/audio_decoder.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/rectangle_update_decoder.cc
diff --git a/remoting/client/rectangle_update_decoder.cc b/remoting/client/rectangle_update_decoder.cc
index 741357d0875673cf0d27d8994031cba8019db60f..cf627a6f662bd97d82e2377bfcf37a8d6b782f4c 100644
--- a/remoting/client/rectangle_update_decoder.cc
+++ b/remoting/client/rectangle_update_decoder.cc
@@ -12,7 +12,6 @@
#include "base/single_thread_task_runner.h"
#include "remoting/base/util.h"
#include "remoting/codec/video_decoder.h"
-#include "remoting/codec/video_decoder_verbatim.h"
#include "remoting/codec/video_decoder_vp8.h"
#include "remoting/client/frame_consumer.h"
#include "remoting/protocol/session_config.h"
@@ -45,9 +44,7 @@ RectangleUpdateDecoder::~RectangleUpdateDecoder() {
void RectangleUpdateDecoder::Initialize(const SessionConfig& config) {
// Initialize decoder based on the selected codec.
ChannelConfig::Codec codec = config.video_config().codec;
- if (codec == ChannelConfig::CODEC_VERBATIM) {
- decoder_.reset(new VideoDecoderVerbatim());
- } else if (codec == ChannelConfig::CODEC_VP8) {
+ if (codec == ChannelConfig::CODEC_VP8) {
Wez 2013/09/12 14:20:15 Need to restore the CODEC_VERBATIM case here.
Sergey Ulanov 2013/09/12 19:18:45 Done.
decoder_.reset(new VideoDecoderVp8());
} else {
NOTREACHED() << "Invalid Encoding found: " << codec;
« no previous file with comments | « no previous file | remoting/codec/audio_decoder.cc » ('j') | remoting/codec/audio_decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698