Create plumbing for disabling force-dark

Test: sysui's rounded corners are no longer white
Bug: 102591313

Change-Id: Id99ae38c354cef06b94a5fb79b5b1a9a216a514c
This commit is contained in:
John Reck
2018-09-21 14:30:19 -07:00
parent 4603406afe
commit 1423e1331f
9 changed files with 101 additions and 1 deletions

View File

@@ -1253,6 +1253,7 @@ public final class Bitmap implements Parcelable {
final RenderNode node = RenderNode.create("BitmapTemporary", null);
node.setLeftTopRightBottom(0, 0, width, height);
node.setClipToBounds(false);
node.setAllowForceDark(false);
final DisplayListCanvas canvas = node.start(width, height);
if (source.getWidth() != width || source.getHeight() != height) {
canvas.scale(width / (float) source.getWidth(),