From dbfac8a72393eaf01670aeb3244de0e18d8faf98 Mon Sep 17 00:00:00 2001 From: "junov@google.com" Date: Thu, 6 Dec 2012 21:47:40 +0000 Subject: Defining new color constat for transparent color Review URL: https://codereview.appspot.com/6901044 git-svn-id: http://skia.googlecode.com/svn/trunk@6696 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/image/SkSurface_Raster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/image/SkSurface_Raster.cpp') diff --git a/src/image/SkSurface_Raster.cpp b/src/image/SkSurface_Raster.cpp index dd318191a7..455ef1be5a 100644 --- a/src/image/SkSurface_Raster.cpp +++ b/src/image/SkSurface_Raster.cpp @@ -103,7 +103,7 @@ SkSurface_Raster::SkSurface_Raster(const SkImage::Info& info, SkPixelRef* pr, si fWeOwnThePixels = true; if (!isOpaque) { - fBitmap.eraseColor(0); + fBitmap.eraseColor(SK_ColorTRANSPARENT); } } -- cgit v1.2.3