aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkSurface.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-12-10 07:24:28 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-10 07:24:28 -0800
commit3054be16dfdb0d06233770cbfc338958edef44ea (patch)
treeea2631250a39b25a550114491c9b980b47c14f70 /include/core/SkSurface.h
parent72b0c05fc19eb159c0adbf20ea87ded68c827ca3 (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/SkSurface.h')
-rw-r--r--include/core/SkSurface.h5
1 files changed, 5 insertions, 0 deletions
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.