diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkCanvas.cpp | 6 | ||||
-rw-r--r-- | src/core/SkPicture.cpp | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 1bc5e2fa78..d637405445 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -2569,17 +2569,15 @@ SkCanvas* SkCanvas::NewRasterDirect(const SkImageInfo& info, void* pixels, size_ if (!supported_for_raster_canvas(info)) { return NULL; } - + SkBitmap bitmap; if (!bitmap.installPixels(info, pixels, rowBytes)) { return NULL; } - + // should this functionality be moved into allocPixels()? if (!bitmap.info().isOpaque()) { bitmap.eraseColor(0); } return SkNEW_ARGS(SkCanvas, (bitmap)); } - - diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp index 92311f3a3a..1285ff1eef 100644 --- a/src/core/SkPicture.cpp +++ b/src/core/SkPicture.cpp @@ -120,7 +120,7 @@ SkPicture::SkPicture() { fAccelData = NULL; } -SkPicture::SkPicture(const SkPicture& src) +SkPicture::SkPicture(const SkPicture& src) : INHERITED() , fAccelData(NULL) { fWidth = src.fWidth; |