SurfaceFlinger: override frame rate for applications that use setFrameRate
(Uploaded again with a fix for b/176299745)
When possible, override the frame rate of an app if it explicitly
set a preferred frame rate.
Test: atest FrameRateOverrideHostTest
Test: SF unit tests
Bug: 170502573
Change-Id: I84a5a99f439ec7a8a808a0b26c630d4344acca4f
diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h
index bc581c2..d6023b6 100644
--- a/services/surfaceflinger/Layer.h
+++ b/services/surfaceflinger/Layer.h
@@ -883,7 +883,7 @@
*/
bool hasInputInfo() const;
- uid_t getOwnerUid() { return mOwnerUid; }
+ virtual uid_t getOwnerUid() const { return mOwnerUid; }
pid_t getOwnerPid() { return mOwnerPid; }