summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 19:45:59 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 19:45:59 +0000
commite4d8e1c51a06fee5e6c35d47feea83b1c7347dc4 (patch)
treebec7eff71b45f72059b0327ef7ea028204d340cc /chrome
parent63bb78db26ed509e9b12b586bafeb81f8bce40a5 (diff)
downloadchromium_src-e4d8e1c51a06fee5e6c35d47feea83b1c7347dc4.zip
chromium_src-e4d8e1c51a06fee5e6c35d47feea83b1c7347dc4.tar.gz
chromium_src-e4d8e1c51a06fee5e6c35d47feea83b1c7347dc4.tar.bz2
Linux: write images to clipboard.
Writing a bitmap to the clipboard is a rather slow operation, as it involves piping it over IPC and then converting it to a PNG. Review URL: http://codereview.chromium.org/42592 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/renderer_host/resource_message_filter.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/renderer_host/resource_message_filter.cc b/chrome/browser/renderer_host/resource_message_filter.cc
index 7d2b6d1..73f7154 100644
--- a/chrome/browser/renderer_host/resource_message_filter.cc
+++ b/chrome/browser/renderer_host/resource_message_filter.cc
@@ -499,13 +499,13 @@ void ResourceMessageFilter::OnClipboardWriteObjects(
// a task to perform the write on the UI thread.
Clipboard::ObjectMap* long_living_objects = new Clipboard::ObjectMap(objects);
- // We pass the renderer handle to assist the clipboard with using shared
- // memory objects. renderer handle is a handle to the process that would
- // own any shared memory that might be in the object list.
#if defined(OS_WIN)
+ // We pass the renderer handle to assist the clipboard with using shared
+ // memory objects. handle() is a handle to the process that would
+ // own any shared memory that might be in the object list. We only do this
+ // on Windows and it only applies to bitmaps. (On Linux, bitmaps
+ // are copied pixel by pixel rather than using shared memory.)
Clipboard::DuplicateRemoteHandles(handle(), long_living_objects);
-#else
- NOTIMPLEMENTED(); // TODO(port) implement this.
#endif
render_widget_helper_->ui_loop()->PostTask(FROM_HERE,