summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/backing_store.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-30 21:18:07 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-30 21:18:07 +0000
commit74681d3483621cf8081c6f42bb63b4cff8d349f3 (patch)
treee640a4593fad44adc4ca480160d1011d6cd4283e /chrome/browser/renderer_host/backing_store.h
parent295f61885be7e1104502185f3322e3bcacdc5f00 (diff)
downloadchromium_src-74681d3483621cf8081c6f42bb63b4cff8d349f3.zip
chromium_src-74681d3483621cf8081c6f42bb63b4cff8d349f3.tar.gz
chromium_src-74681d3483621cf8081c6f42bb63b4cff8d349f3.tar.bz2
linux: use XShmPutImage when SHM Pixmap APIs unavailable
SHM Pixmaps were frequently unavailable (which makes some sense: you're asking for a shared memory handle into a graphics-card-side memory buffer). But we can still do an SHM copy from pixels->pixmap as long as we only go in write only direction, via the XShmPutImage API. BUG=31301 Review URL: http://codereview.chromium.org/522023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35390 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/backing_store.h')
-rw-r--r--chrome/browser/renderer_host/backing_store.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/renderer_host/backing_store.h b/chrome/browser/renderer_host/backing_store.h
index d52e560..28640ba 100644
--- a/chrome/browser/renderer_host/backing_store.h
+++ b/chrome/browser/renderer_host/backing_store.h
@@ -160,8 +160,8 @@ class BackingStore {
// This is the connection to the X server where this backing store will be
// displayed.
Display* const display_;
- // If this is true, then |connection_| is good for MIT-SHM (X shared memory).
- const bool use_shared_memory_;
+ // What flavor, if any, MIT-SHM (X shared memory) support we have.
+ const x11_util::SharedMemorySupport shared_memory_support_;
// If this is true, then we can use Xrender to composite our pixmaps.
const bool use_render_;
// If |use_render_| is false, this is the number of bits-per-pixel for |depth|