File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -908,17 +908,30 @@ public void drawPath(Path path, Paint paint) {
908908
909909 @ Override
910910 public void drawPicture (Picture picture ) {
911- // TODO: Implement
911+ picture .endRecording ();
912+ // TODO: Implement rendering
912913 }
913914
914915 @ Override
915916 public void drawPicture (Picture picture , Rect dst ) {
916- // TODO: Implement
917+ save ();
918+ translate (dst .left , dst .top );
919+ if (picture .getWidth () > 0 && picture .getHeight () > 0 ) {
920+ scale (dst .width () / picture .getWidth (), dst .height () / picture .getHeight ());
921+ }
922+ drawPicture (picture );
923+ restore ();
917924 }
918925
919926 @ Override
920927 public void drawPicture (Picture picture , RectF dst ) {
921- // TODO: Implement
928+ save ();
929+ translate (dst .left , dst .top );
930+ if (picture .getWidth () > 0 && picture .getHeight () > 0 ) {
931+ scale (dst .width () / picture .getWidth (), dst .height () / picture .getHeight ());
932+ }
933+ drawPicture (picture );
934+ restore ();
922935 }
923936
924937 @ Override
You can’t perform that action at this time.
0 commit comments