aboutsummaryrefslogtreecommitdiffhomepage
path: root/site
diff options
context:
space:
mode:
authorGravatar Yuqian Li <liyuqian@google.com>2017-02-22 13:12:30 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-22 19:55:27 +0000
commit46b83a43e7e246d662db37f5e97e4732db067f16 (patch)
tree5269d94259be301218997161dd6962d3023b8786 /site
parent5298dc8bf30f580f551d130346c007efaf4b2098 (diff)
Update endRecordingAsPicture to finishRecordingAsPicture
BUG=skia: DOCS_PREVIEW= https://skia.org/?cl=8854 Change-Id: Ia3ad32d088d44fbe47ec37de016931c4bd21231c Reviewed-on: https://skia-review.googlesource.com/8854 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Yuqian Li <liyuqian@google.com>
Diffstat (limited to 'site')
-rw-r--r--site/user/api/canvas.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/user/api/canvas.md b/site/user/api/canvas.md
index 1b60ec51b6..3c92905152 100644
--- a/site/user/api/canvas.md
+++ b/site/user/api/canvas.md
@@ -87,7 +87,7 @@ has been made current to the current thread when Skia calls are made.
#include "SkImage.h"
#include "SkStream.h"
#include "SkSurface.h"
-
+
void gl_example(int width, int height, void(*draw)(SkCanvas*), const char* path) {
// You've already created your OpenGL context and bound it.
const GrGLInterface* interface = nullptr;
@@ -153,7 +153,7 @@ The SkPicture backend uses SkPictureRecorder instead of SkSurface.
SkCanvas* recordingCanvas = recorder.beginRecording(SkIntToScalar(width),
SkIntToScalar(height));
draw(recordingCanvas);
- sk_sp<SkPicture> picture(recorder.endRecordingAsPicture());
+ sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture());
SkFILEWStream skpStream(path);
// Open SKP files with `SampleApp --picture SKP_FILE`
picture->serialize(&skpStream);