Add SurfaceInterceptor initial implementation
SurfaceInterceptor allows capturing streams of surface updates that come into SurfaceFlinger. It captures the creation and deletion of surfaces, changes to a surface like size or position, buffer updates, and hw vsync updates (for a complete list of what is captured see /frameworks/native/cmds/surfacecapturereplay/proto/src/trace.proto) SurfaceInterceptor uses a protocol buffer object to store each trace. This allows for the produced trace to be either played back into SurfaceFlinger or manually inspected. To enable the interceptor: service call SurfaceFlinger 1020 i32 1 To disable the interceptor: service call SurfaceFlinger 1020 i32 0 Each trace file will be saved to /data/SurfaceTrace.dat For SurfaceInterceptor to work SELinux must be set to permissive. Change-Id: I5adff9dcd19456d86cfd5b1f51096dff9990e086
Loading
Please register or sign in to comment