Update some docs & tweak some method names
Test: builds Change-Id: Id0e5cf6fdb3a391136a1d314498f75e0b954ceeb
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user