Index: src/image/SkImage_Raster.cpp |
diff --git a/src/image/SkImage_Raster.cpp b/src/image/SkImage_Raster.cpp |
index d13141c3c61abe8681f05feebd15246019eb187e..18d6a8cabb2bd871292021c94375becdcda4221e 100644 |
--- a/src/image/SkImage_Raster.cpp |
+++ b/src/image/SkImage_Raster.cpp |
@@ -217,8 +217,8 @@ SkImage* SkNewImageFromPixelRef(const SkImageInfo& info, SkPixelRef* pr, |
return SkNEW_ARGS(SkImage_Raster, (info, pr, rowBytes)); |
} |
-SkPixelRef* SkBitmapImageGetPixelRef(SkImage* image) { |
- return ((SkImage_Raster*)image)->getPixelRef(); |
+const SkPixelRef* SkBitmapImageGetPixelRef(const SkImage* image) { |
+ return ((const SkImage_Raster*)image)->getPixelRef(); |
} |
bool SkImage_Raster::isOpaque() const { |