diff options
author | 2014-12-10 07:24:28 -0800 | |
---|---|---|
committer | 2014-12-10 07:24:28 -0800 | |
commit | 3054be16dfdb0d06233770cbfc338958edef44ea (patch) | |
tree | ea2631250a39b25a550114491c9b980b47c14f70 /include/core/SkCanvas.h | |
parent | 72b0c05fc19eb159c0adbf20ea87ded68c827ca3 (diff) |
Remove canvas::NewRaster, and rename surface::NewRasterPMColor to N32Premul
patch from issue 781403002 at patchset 20001 (http://crrev.com/781403002#ps20001)
BUG=skia:
TBR=
re-landing after chrome fixes have landed
Review URL: https://codereview.chromium.org/784223007
Diffstat (limited to 'include/core/SkCanvas.h')
-rw-r--r-- | include/core/SkCanvas.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index ff60c57fa7..46dc3774f0 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -62,35 +62,6 @@ public: SK_DECLARE_INST_COUNT(SkCanvas) /** - * Attempt to allocate an offscreen raster canvas, matching the ImageInfo. - * On success, return a new canvas that will draw into that offscreen. - * - * The caller can access the pixels after drawing into this canvas by - * calling readPixels() or peekPixels(). - * - * If the requested ImageInfo is opaque (either the colortype is - * intrinsically opaque like RGB_565, or the info's alphatype is kOpaque) - * then the pixel memory may be uninitialized. Otherwise, the pixel memory - * will be initialized to 0, which is interpreted as transparent. - * - * On failure, return NULL. This can fail for several reasons: - * 1. the memory allocation failed (e.g. request is too large) - * 2. invalid ImageInfo (e.g. negative dimensions) - * 3. unsupported ImageInfo for a canvas - * - kUnknown_SkColorType, kIndex_8_SkColorType - * - kIgnore_SkAlphaType - * - this list is not complete, so others may also be unsupported - * - * Note: it is valid to request a supported ImageInfo, but with zero - * dimensions. - */ - static SkCanvas* NewRaster(const SkImageInfo&); - - static SkCanvas* NewRasterN32(int width, int height) { - return NewRaster(SkImageInfo::MakeN32Premul(width, height)); - } - - /** * Attempt to allocate raster canvas, matching the ImageInfo, that will draw directly into the * specified pixels. To access the pixels after drawing to them, the caller should call * flush() or call peekPixels(...). |