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

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: 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..48b0e741ae2982415bb0bdf7602403d6ada55f20 100644
--- a/remoting/host/capturer_linux.cc
+++ b/remoting/host/capturer_linux.cc
@@ -23,10 +23,12 @@ namespace {
static const int kBytesPerPixel = 4;
+// For now, always use full-screen polling instead of the DAMAGE extension,
+// as this extension is broken on many current systems OOTB.
Jamie 2011/12/14 02:32:22 This comment is no longer true.
+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