OSDN Git Service

Enable Picture w/ HW Accelerated Canvas.
authorDerek Sollenberger <djsollen@google.com>
Thu, 4 Jun 2015 19:54:15 +0000 (15:54 -0400)
committerDerek Sollenberger <djsollen@google.com>
Mon, 22 Jun 2015 13:18:29 +0000 (13:18 +0000)
Bug: 20688645
Change-Id: I664f37d6dbb3e61b17206c82ebcc63f988cefc65

core/java/android/view/DisplayListCanvas.java
docs/html/guide/topics/graphics/hardware-accel.jd
graphics/java/android/graphics/Picture.java

index 52a12f3..3c21981 100644 (file)
@@ -323,10 +323,4 @@ public class DisplayListCanvas extends Canvas {
     }
 
     private static native void nDrawRects(long renderer, long region, long paint);
-
-    @Override
-    public void drawPicture(Picture picture) {
-        picture.endRecording();
-        // TODO: Implement rendering
-    }
 }
index 3d1935a..e3f1d9e 100644 (file)
@@ -284,7 +284,7 @@ changed.</li>
     </tr>
     <tr>
         <td class="label_neg">drawPicture()</td>
-        <td class="value_neg">&#10007;</td>
+        <td class="value_neg">23</td>
     </tr>
     <tr>
         <td class="label_pos">drawPosText()</td>
index 39272b9..0e55089 100644 (file)
@@ -135,8 +135,8 @@ public class Picture {
      * properly and are highly discouraged.
      *
      * <p>
-     * <strong>Note:</strong> a picture created from an input stream cannot be
-     * replayed on a hardware accelerated canvas.
+     * <strong>Note:</strong> 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
@@ -155,8 +155,8 @@ public class Picture {
      * there is no guarantee that the Picture can be successfully reconstructed.
      *
      * <p>
-     * <strong>Note:</strong> a picture created from an input stream cannot be
-     * replayed on a hardware accelerated canvas.
+     * <strong>Note:</strong> 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