| Index: src/image/SkSurface_Raster.cpp
|
| diff --git a/src/image/SkSurface_Raster.cpp b/src/image/SkSurface_Raster.cpp
|
| index 1b218eb446222a1e64802c357b8a7ab3c28e362e..7010b5fb2abb1f790baa1e5c9fd947c6e7621099 100644
|
| --- a/src/image/SkSurface_Raster.cpp
|
| +++ b/src/image/SkSurface_Raster.cpp
|
| @@ -85,15 +85,12 @@ SkSurface_Raster::SkSurface_Raster(const SkImageInfo& info, void* pixels, size_t
|
| }
|
|
|
| SkSurface_Raster::SkSurface_Raster(SkPixelRef* pr)
|
| - : INHERITED(pr->info().fWidth, pr->info().fHeight)
|
| + : INHERITED(pr->info())
|
| {
|
| - const SkImageInfo& info = pr->info();
|
| -
|
| - fBitmap.setConfig(info, info.minRowBytes());
|
| - fBitmap.setPixelRef(pr);
|
| + fBitmap.installPixelRef(pr);
|
| fWeOwnThePixels = true;
|
|
|
| - if (!info.isOpaque()) {
|
| + if (!pr->info().isOpaque()) {
|
| fBitmap.eraseColor(SK_ColorTRANSPARENT);
|
| }
|
| }
|
|
|