summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-12 16:46:05 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-12 16:46:05 +0000
commite6ffb374e6927061103a87053cb24f812119f1e6 (patch)
treed6a5114f4b9b104772a8a89c0eae453982187a79 /chrome
parent2b05317b8aa8edb15c794f5d389e71b1a50c331d (diff)
downloadchromium_src-e6ffb374e6927061103a87053cb24f812119f1e6.zip
chromium_src-e6ffb374e6927061103a87053cb24f812119f1e6.tar.gz
chromium_src-e6ffb374e6927061103a87053cb24f812119f1e6.tar.bz2
Fix the build; make the function here non-const too.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@718 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/common/clipboard_service.cc2
-rw-r--r--chrome/common/clipboard_service.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/clipboard_service.cc b/chrome/common/clipboard_service.cc
index d7c5d9f..35246d4 100644
--- a/chrome/common/clipboard_service.cc
+++ b/chrome/common/clipboard_service.cc
@@ -37,7 +37,7 @@
ClipboardService::ClipboardService() {
}
-void ClipboardService::WriteBitmap(const SkBitmap& bitmap) const {
+void ClipboardService::WriteBitmap(const SkBitmap& bitmap) {
SkAutoLockPixels bitmap_lock(bitmap);
Clipboard::WriteBitmap(bitmap.getPixels(),
gfx::Size(bitmap.width(), bitmap.height()));
diff --git a/chrome/common/clipboard_service.h b/chrome/common/clipboard_service.h
index ab7087d..cad2bab 100644
--- a/chrome/common/clipboard_service.h
+++ b/chrome/common/clipboard_service.h
@@ -44,7 +44,7 @@ class ClipboardService : public Clipboard {
// Adds a bitmap to the clipboard
// This is the slowest way to copy a bitmap to the clipboard as we must fist
// memcpy the bits into GDI and the blit the bitmap to the clipboard.
- void WriteBitmap(const SkBitmap& bitmap) const;
+ void WriteBitmap(const SkBitmap& bitmap);
private: