summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorHai Zhang <zhanghai@google.com>2019-07-11 13:27:33 -0700
committerHai Zhang <zhanghai@google.com>2019-07-11 14:50:03 -0700
commitfa97060c21c2940132c2b566e827c170eb8b273a (patch)
tree1e5bec7e89bd6a202ae4866c9e6f9ba95543bc1e /opengl/tests/gl_basic/gl_basic.cpp
parent95eab8ae45863184acb901219f9fceb2dc190ac1 (diff)
Throttle calls to grant default roles.
Package changes can be very frequent when for instance a new user is created, and we used to re-run granting default roles every time a package change is detected. In such cases the grant is inherently async, so we can throttle it with a certain interval for better performance. This CL adds a throttled runnable and makes the async call in RoleManagerService package change receiver throttled with an interval of 1 second. The package hash computation is also moved to FgThread in this case. The original blocking call in onStartUser() is not affected and still runs on main thread. Test: manual Change-Id: I211ee3d4acbdf0662c6dfe4d67b35d253e12a472
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions