summaryrefslogtreecommitdiffstats
path: root/base/scoped_clipboard_writer.h
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 /base/scoped_clipboard_writer.h
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 'base/scoped_clipboard_writer.h')
-rw-r--r--base/scoped_clipboard_writer.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/base/scoped_clipboard_writer.h b/base/scoped_clipboard_writer.h
index 85eeacf2..03ac892 100644
--- a/base/scoped_clipboard_writer.h
+++ b/base/scoped_clipboard_writer.h
@@ -51,13 +51,9 @@ class ScopedClipboardWriter {
// Used by WebKit to determine whether WebKit wrote the clipboard last
void WriteWebSmartPaste();
-#if defined(OS_WIN)
// Adds a bitmap to the clipboard
- // This is the slowest way to copy a bitmap to the clipboard as we must first
- // memcpy the pixels into GDI and the blit the bitmap to the clipboard.
// Pixel format is assumed to be 32-bit BI_RGB.
void WriteBitmapFromPixels(const void* pixels, const gfx::Size& size);
-#endif // defined(OS_WIN)
protected:
// We accumulate the data passed to the various targets in the |objects_|