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

Unified Diff: remoting/host/capturer.h

Issue 8937019: Use XDamage in Virtual Me2Me. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improve comment. Created 9 years 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/host/capturer_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/capturer.h
diff --git a/remoting/host/capturer.h b/remoting/host/capturer.h
index 9039e04f41a5dfd6a173516b5a734fb6b1a06a50..f48b4cd300e412848a5fa4808e404bb183567e9a 100644
--- a/remoting/host/capturer.h
+++ b/remoting/host/capturer.h
@@ -46,6 +46,20 @@ class Capturer {
// Create platform-specific capturer.
static Capturer* Create();
+#if defined(OS_LINUX)
+ // Set whether the Capturer should try to use X DAMAGE support if it is
+ // available. This needs to be called before the Capturer is created.
+ // This is used by the Virtual Me2Me host, since the XDamage extension is
+ // known to work reliably in this case.
+
+ // TODO(lambroslambrou): This currently sets a global flag, referenced during
+ // Capturer::Create(). This is a temporary solution, until the
+ // DesktopEnvironment class is refactored to allow applications to control
+ // the creation of various stubs (including the Capturer) - see
+ // http://crbug.com/104544
+ static void EnableXDamage(bool enable);
+#endif // defined(OS_LINUX)
+
// Called when the screen configuration is changed.
virtual void ScreenConfigurationChanged() = 0;
« no previous file with comments | « no previous file | remoting/host/capturer_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698