From 910267dde2d036b6298f62943f019bda3d662eb2 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Wed, 2 Nov 2011 20:06:25 +0000 Subject: Make SkDevice::onReadPixels take a const& rather than const* git-svn-id: http://skia.googlecode.com/svn/trunk@2587 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkDevice.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/core/SkDevice.h') diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h index 5d184e478f..4dadfc43cb 100644 --- a/include/core/SkDevice.h +++ b/include/core/SkDevice.h @@ -275,9 +275,8 @@ protected: * 2. bitmap has pixels. * 3. The rectangle (x, y, x + bitmap->width(), y + bitmap->height()) is * contained in the device bounds. - * 4. the bitmap struct is safe to partially overwrite in case of failure */ - virtual bool onReadPixels(const SkBitmap* bitmap, int x, int y); + virtual bool onReadPixels(const SkBitmap& bitmap, int x, int y); /** Called when this device is installed into a Canvas. Balanaced by a call -- cgit v1.2.3