Merge "Remove call to setLayerStack for BlackFrame Surface"

This commit is contained in:
TreeHugger Robot
2019-11-23 00:27:52 +00:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 3 deletions

View File

@@ -52,7 +52,6 @@ public class BlackFrame {
.setParent(surfaceControl)
.build();
transaction.setWindowCrop(surface, w, h);
transaction.setLayerStack(surface, dc.getDisplayId());
transaction.setAlpha(surface, 1);
transaction.setLayer(surface, layer);
transaction.setPosition(surface, left, top);

View File

@@ -121,8 +121,7 @@ class Watermark {
.setBufferSize(1, 1)
.setFormat(PixelFormat.TRANSLUCENT)
.build();
t.setLayerStack(ctrl, mDisplay.getLayerStack())
.setLayer(ctrl, WindowManagerService.TYPE_LAYER_MULTIPLIER * 100)
t.setLayer(ctrl, WindowManagerService.TYPE_LAYER_MULTIPLIER * 100)
.setPosition(ctrl, 0, 0)
.show(ctrl);
mSurface.copyFrom(ctrl);