summaryrefslogtreecommitdiffstats
path: root/app/gfx
diff options
context:
space:
mode:
authorskrul@google.com <skrul@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 20:01:08 +0000
committerskrul@google.com <skrul@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 20:01:08 +0000
commit6806d48ab1ce1f7dc3104033467581959368c28e (patch)
tree7875e66662af55969be0b3e668525c5a6b336b84 /app/gfx
parente08d7b463a5c82d253def91b20c8ed1756e8d337 (diff)
downloadchromium_src-6806d48ab1ce1f7dc3104033467581959368c28e.zip
chromium_src-6806d48ab1ce1f7dc3104033467581959368c28e.tar.gz
chromium_src-6806d48ab1ce1f7dc3104033467581959368c28e.tar.bz2
Implement dragging icon for dragging bookmarks in views/gtk.
Review URL: http://codereview.chromium.org/270068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29692 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gfx')
-rw-r--r--app/gfx/canvas.cc2
-rw-r--r--app/gfx/canvas.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/gfx/canvas.cc b/app/gfx/canvas.cc
index 2cef3de..306531c4 100644
--- a/app/gfx/canvas.cc
+++ b/app/gfx/canvas.cc
@@ -248,7 +248,7 @@ void Canvas::TileImageInt(const SkBitmap& bitmap, int src_x, int src_y,
restore();
}
-SkBitmap Canvas::ExtractBitmap() {
+SkBitmap Canvas::ExtractBitmap() const {
const SkBitmap& device_bitmap = getDevice()->accessBitmap(false);
// Make a bitmap to return, and a canvas to draw into it. We don't just want
diff --git a/app/gfx/canvas.h b/app/gfx/canvas.h
index 553ec94..90cfad8 100644
--- a/app/gfx/canvas.h
+++ b/app/gfx/canvas.h
@@ -180,7 +180,7 @@ class Canvas : public skia::PlatformCanvas {
int dest_x, int dest_y, int w, int h);
// Extracts a bitmap from the contents of this canvas.
- SkBitmap ExtractBitmap();
+ SkBitmap ExtractBitmap() const;
#if defined(OS_LINUX)
// Applies current matrix on the canvas to the cairo context. This should be