From 943c4e0813e740fa5ac5284f5c24e27130415780 Mon Sep 17 00:00:00 2001 From: John Reck Date: Wed, 29 Jun 2016 16:00:29 -0700 Subject: [PATCH] Clarify Picture docs on playback Change-Id: Iaf8d8d04deb97aff39c93c246ef20312c9c2a7cb fixes: 26911597 --- graphics/java/android/graphics/Picture.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/graphics/java/android/graphics/Picture.java b/graphics/java/android/graphics/Picture.java index 28d869063225c..08eeaff69f9b3 100644 --- a/graphics/java/android/graphics/Picture.java +++ b/graphics/java/android/graphics/Picture.java @@ -21,11 +21,14 @@ import java.io.OutputStream; /** * A Picture records drawing calls (via the canvas returned by beginRecording) - * and can then play them back into Canvas (via {@link Picture#draw(Canvas)} or + * and can then play them back into Canvas (via {@link Picture#draw(Canvas)} or * {@link Canvas#drawPicture(Picture)}).For most content (e.g. text, lines, rectangles), * drawing a sequence from a picture can be faster than the equivalent API * calls, since the picture performs its playback without incurring any * method-call overhead. + * + *

Note: Prior to API level 23 a picture cannot + * be replayed on a hardware accelerated canvas.

*/ public class Picture { private Canvas mRecordingCanvas; @@ -135,10 +138,6 @@ public class Picture { * have been persisted across device restarts are not guaranteed to decode * properly and are highly discouraged. * - *

- * Note: Prior to API level 23 a picture created from an - * input stream cannot be replayed on a hardware accelerated canvas. - * * @see #writeToStream(java.io.OutputStream) * @deprecated The recommended alternative is to not use writeToStream and * instead draw the picture into a Bitmap from which you can persist it as @@ -155,10 +154,6 @@ public class Picture { * The resulting stream is NOT to be persisted across device restarts as * there is no guarantee that the Picture can be successfully reconstructed. * - *

- * Note: Prior to API level 23 a picture created from an - * input stream cannot be replayed on a hardware accelerated canvas. - * * @see #createFromStream(java.io.InputStream) * @deprecated The recommended alternative is to draw the picture into a * Bitmap from which you can persist it as raw or compressed pixels.