| Index: include/core/SkSurface.h
|
| diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h
|
| index 62d2252af1472f108b4ba06a49b5284cb12a05e7..8b36314360160c0ee09cca36dad5e417723ccea6 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.
|
|
|