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

Unified Diff: remoting/host/capturer_linux.cc

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 | « remoting/host/capturer.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/capturer_linux.cc
diff --git a/remoting/host/capturer_linux.cc b/remoting/host/capturer_linux.cc
index 239aa169a43c9583a9a470ba2e87065bce6234a7..9c907168108fdc3a5441599a9b5416ac1bdc2523 100644
--- a/remoting/host/capturer_linux.cc
+++ b/remoting/host/capturer_linux.cc
@@ -23,10 +23,12 @@ namespace {
static const int kBytesPerPixel = 4;
+// Default to false, since many systems have broken XDamage support - see
+// http://crbug.com/73423.
+static bool g_should_use_x_damage = false;
+
static bool ShouldUseXDamage() {
- // For now, always use full-screen polling instead of the DAMAGE extension,
- // as this extension is broken on many current systems OOTB.
- return false;
+ return g_should_use_x_damage;
}
// A class representing a full-frame pixel buffer
@@ -513,4 +515,9 @@ Capturer* Capturer::Create() {
return capturer;
}
+// static
+void Capturer::EnableXDamage(bool enable) {
+ g_should_use_x_damage = enable;
+}
+
} // namespace remoting
« no previous file with comments | « remoting/host/capturer.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698