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

Unified Diff: remoting/host/simple_host_process.cc

Issue 4255001: Revert 64672 - Cleanups in the video encoding decoding code. Reenable VP8.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 2 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 | « remoting/host/session_manager_unittest.cc ('k') | remoting/proto/chromotocol.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/simple_host_process.cc
===================================================================
--- remoting/host/simple_host_process.cc (revision 64676)
+++ remoting/host/simple_host_process.cc (working copy)
@@ -25,18 +25,14 @@
#include "base/logging.h"
#include "base/mac/scoped_nsautorelease_pool.h"
#include "base/nss_util.h"
-#include "base/path_service.h"
#include "base/thread.h"
-#include "media/base/media.h"
#include "remoting/base/encoder_verbatim.h"
-#include "remoting/base/encoder_vp8.h"
#include "remoting/base/encoder_zlib.h"
-#include "remoting/base/tracer.h"
#include "remoting/host/capturer_fake.h"
#include "remoting/host/chromoting_host.h"
#include "remoting/host/chromoting_host_context.h"
#include "remoting/host/json_host_config.h"
-#include "remoting/proto/video.pb.h"
+#include "remoting/base/tracer.h"
#if defined(OS_WIN)
#include "remoting/host/capturer_gdi.h"
@@ -66,7 +62,6 @@
const std::string kFakeSwitchName = "fake";
const std::string kConfigSwitchName = "config";
const std::string kVerbatimSwitchName = "verbatim";
-const std::string kVp8SwitchName = "vp8";
int main(int argc, char** argv) {
// Needed for the Mac, so we don't leak objects when threads are created.
@@ -97,15 +92,14 @@
// Check the argument to see if we should use a fake capturer and encoder.
bool fake = cmd_line->HasSwitch(kFakeSwitchName);
bool verbatim = cmd_line->HasSwitch(kVerbatimSwitchName);
- bool vp8 = cmd_line->HasSwitch(kVp8SwitchName);
#if defined(OS_WIN)
- std::wstring home_path = GetEnvironmentVar(kHomeDrive);
- home_path += GetEnvironmentVar(kHomePath);
+ std::wstring path = GetEnvironmentVar(kHomeDrive);
+ path += GetEnvironmentVar(kHomePath);
#else
- std::string home_path = GetEnvironmentVar(base::env_vars::kHome);
+ std::string path = GetEnvironmentVar(base::env_vars::kHome);
#endif
- FilePath config_path(home_path);
+ FilePath config_path(path);
config_path = config_path.Append(kDefaultConfigPath);
if (cmd_line->HasSwitch(kConfigSwitchName)) {
config_path = cmd_line->GetSwitchValuePath(kConfigSwitchName);
@@ -122,14 +116,6 @@
encoder.reset(new remoting::EncoderVerbatim());
}
- // TODO(sergeyu): Enable VP8 on ARM builds.
-#if !defined(ARCH_CPU_ARM_FAMILY)
- if (vp8) {
- LOG(INFO) << "Using the verbatim encoder.";
- encoder.reset(new remoting::EncoderVp8());
- }
-#endif
-
base::Thread file_io_thread("FileIO");
file_io_thread.Start();
@@ -146,11 +132,6 @@
remoting::ChromotingHostContext context;
context.Start();
- FilePath module_path;
- PathService::Get(base::DIR_MODULE, &module_path);
- CHECK(media::InitializeMediaLibrary(module_path))
- << "Cannot load media library";
-
// Construct a chromoting host.
scoped_refptr<remoting::ChromotingHost> host(
new remoting::ChromotingHost(&context,
« no previous file with comments | « remoting/host/session_manager_unittest.cc ('k') | remoting/proto/chromotocol.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698