Merge "Capture layer and children when calling takeSurfaceControlScreenshot" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9a0bcd29df
@@ -220,7 +220,9 @@ public final class UiAutomationConnection extends IUiAutomationConnection.Stub {
|
|||||||
final long identity = Binder.clearCallingIdentity();
|
final long identity = Binder.clearCallingIdentity();
|
||||||
try {
|
try {
|
||||||
captureBuffer = SurfaceControl.captureLayers(
|
captureBuffer = SurfaceControl.captureLayers(
|
||||||
new SurfaceControl.LayerCaptureArgs.Builder(surfaceControl).build());
|
new SurfaceControl.LayerCaptureArgs.Builder(surfaceControl)
|
||||||
|
.setChildrenOnly(false)
|
||||||
|
.build());
|
||||||
} finally {
|
} finally {
|
||||||
Binder.restoreCallingIdentity(identity);
|
Binder.restoreCallingIdentity(identity);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user