From 3054be16dfdb0d06233770cbfc338958edef44ea Mon Sep 17 00:00:00 2001 From: reed Date: Wed, 10 Dec 2014 07:24:28 -0800 Subject: 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 --- include/core/SkSurface.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/core/SkSurface.h') diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h index 62d2252af1..8b36314360 100644 --- a/include/core/SkSurface.h +++ b/include/core/SkSurface.h @@ -61,9 +61,14 @@ public: * specified width and height, and populates the rest of info to match * pixels in SkPMColor format. */ +#ifdef SK_SUPPORT_LEGACY_NewRasterPMColor static SkSurface* NewRasterPMColor(int width, int height, const SkSurfaceProps* props = NULL) { return NewRaster(SkImageInfo::MakeN32Premul(width, height), props); } +#endif + static SkSurface* NewRasterN32Premul(int width, int height, const SkSurfaceProps* props = NULL) { + return NewRaster(SkImageInfo::MakeN32Premul(width, height), props); + } /** * Return a new surface using the specified render target. -- cgit v1.2.3