diff options
author | Ady Abraham <adyabr@google.com> | 2020-10-12 10:22:13 -0700 |
---|---|---|
committer | Ady Abraham <adyabr@google.com> | 2020-11-03 10:19:21 -0800 |
commit | 0bb6a47f5264571690d57c609f0e945086dba9b1 (patch) | |
tree | f9ab6720e867e1f133360a4515036e15e4f1694f /services/surfaceflinger/tests/unittests/TransactionApplicationTest.cpp | |
parent | 9febda8e05bbd924d14682454fdc7a846c38f954 (diff) |
SurfaceFlinger: throttle applications based on uid
Add the ability for SurfaceFlinger to be able to throttle down to
a divider of the refresh rate (i.e. for 30/45 for 90Hz)
Change-Id: I6bfd6f43ee1f30e771a136c558d8ae9a6d7fbe0f
Test: Manually via 1039 SF backdoor
Bug: 170502573
Bug: 169270763
Bug: 169271059
Diffstat (limited to 'services/surfaceflinger/tests/unittests/TransactionApplicationTest.cpp')
-rw-r--r-- | services/surfaceflinger/tests/unittests/TransactionApplicationTest.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/services/surfaceflinger/tests/unittests/TransactionApplicationTest.cpp b/services/surfaceflinger/tests/unittests/TransactionApplicationTest.cpp index 760bf65fee..68cf330b9c 100644 --- a/services/surfaceflinger/tests/unittests/TransactionApplicationTest.cpp +++ b/services/surfaceflinger/tests/unittests/TransactionApplicationTest.cpp @@ -66,13 +66,15 @@ public: EXPECT_CALL(*eventThread, registerDisplayEventConnection(_)); EXPECT_CALL(*eventThread, createEventConnection(_, _)) .WillOnce(Return( - new EventThreadConnection(eventThread.get(), ResyncCallback(), + new EventThreadConnection(eventThread.get(), /*callingUid=*/0, + ResyncCallback(), ISurfaceComposer::eConfigChangedSuppress))); EXPECT_CALL(*sfEventThread, registerDisplayEventConnection(_)); EXPECT_CALL(*sfEventThread, createEventConnection(_, _)) .WillOnce(Return( - new EventThreadConnection(sfEventThread.get(), ResyncCallback(), + new EventThreadConnection(sfEventThread.get(), /*callingUid=*/0, + ResyncCallback(), ISurfaceComposer::eConfigChangedSuppress))); EXPECT_CALL(*mVSyncTracker, nextAnticipatedVSyncTimeFrom(_)).WillRepeatedly(Return(0)); |