aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-11 18:34:35 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-11 18:34:35 +0000
commitcae54f1f211e3c293ef9afb968067d06ca0ea23d (patch)
tree070f978ada92f164c6c6b06c733690b5e51abc4c /include/core
parentc4b21e6c03a6cdb03e116b9f510eb10cf8daedb1 (diff)
remove picture-backed surfaces
BUG=skia: R=robertphillips@google.com, mtklein@google.com Author: reed@google.com Review URL: https://codereview.chromium.org/233943002 git-svn-id: http://skia.googlecode.com/svn/trunk@14159 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkCanvas.h3
-rw-r--r--include/core/SkSurface.h7
2 files changed, 2 insertions, 8 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 94eb6add7f..6a15c047bc 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -189,7 +189,8 @@ public:
/**
* Create a new surface matching the specified info, one that attempts to
- * be maximally compatible when used with this canvas.
+ * be maximally compatible when used with this canvas. If there is no matching Surface type,
+ * NULL is returned.
*/
SkSurface* newSurface(const SkImageInfo&);
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h
index f5052ca10c..542c9a08f6 100644
--- a/include/core/SkSurface.h
+++ b/include/core/SkSurface.h
@@ -56,13 +56,6 @@ public:
}
/**
- * Return a new surface whose contents will be recorded into a picture.
- * When this surface is drawn into another canvas, its contents will be
- * "replayed" into that canvas.
- */
- static SkSurface* NewPicture(int width, int height);
-
- /**
* Return a new surface using the specified render target.
*/
static SkSurface* NewRenderTargetDirect(GrRenderTarget*);