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

Unified Diff: remoting/host/basic_desktop_environment.cc

Issue 639233002: Remote assistance on Chrome OS Part IV - It2MeHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: AuraDesktopCapturer clean up Created 6 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
Index: remoting/host/basic_desktop_environment.cc
diff --git a/remoting/host/basic_desktop_environment.cc b/remoting/host/basic_desktop_environment.cc
index 2cf80c5fd956e6e1b40b766c36a17763f542eecc..5b2164e39a654c434f63d557cf595d9a4c83ea0f 100644
--- a/remoting/host/basic_desktop_environment.cc
+++ b/remoting/host/basic_desktop_environment.cc
@@ -8,6 +8,9 @@
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
#include "remoting/host/audio_capturer.h"
+#if defined(OS_CHROMEOS)
+#include "remoting/host/chromeos/aura_desktop_capturer.h"
+#endif // defined(OS_CHROMEOS)
Wez 2014/10/24 23:29:27 nit: Don't need the trailing comment for a single-
kelvinp 2014/10/29 01:22:51 Done.
#include "remoting/host/client_session_control.h"
#include "remoting/host/gnubby_auth_handler.h"
#include "remoting/host/input_injector.h"
@@ -62,10 +65,14 @@ scoped_ptr<webrtc::DesktopCapturer>
BasicDesktopEnvironment::CreateVideoCapturer() {
DCHECK(caller_task_runner_->BelongsToCurrentThread());
+#if defined(OS_CHROMEOS)
+ return scoped_ptr<webrtc::DesktopCapturer>(new AuraDesktopCapturer());
+#else // !defined(OS_CHROMEOS)
// The basic desktop environment does not use X DAMAGE, since it is
// broken on many systems - see http://crbug.com/73423.
return make_scoped_ptr(
webrtc::ScreenCapturer::Create(*desktop_capture_options_));
+#endif // !defined(OS_CHROMEOS)
}
BasicDesktopEnvironment::BasicDesktopEnvironment(

Powered by Google App Engine
This is Rietveld 408576698