Update some docs & tweak some method names

Test: builds
Change-Id: Id0e5cf6fdb3a391136a1d314498f75e0b954ceeb
This commit is contained in:
John Reck
2018-10-25 13:56:17 -07:00
parent bef47d02d5
commit c7ddcf390f
8 changed files with 141 additions and 102 deletions

View File

@@ -1295,13 +1295,13 @@ public final class Bitmap implements Parcelable {
node.setLeftTopRightBottom(0, 0, width, height);
node.setClipToBounds(false);
node.setForceDarkAllowed(false);
final RecordingCanvas canvas = node.start(width, height);
final RecordingCanvas canvas = node.startRecording(width, height);
if (source.getWidth() != width || source.getHeight() != height) {
canvas.scale(width / (float) source.getWidth(),
height / (float) source.getHeight());
}
canvas.drawPicture(source);
node.end(canvas);
node.endRecording();
Bitmap bitmap = ThreadedRenderer.createHardwareBitmap(node, width, height);
if (config != Config.HARDWARE) {
bitmap = bitmap.copy(config, false);