diff options
author | 2021-08-24 11:03:51 +0200 | |
---|---|---|
committer | 2021-09-07 16:47:25 +0000 | |
commit | 35b80cde9225952bc9ec6afccffd480e77d5ad2e (patch) | |
tree | 261120ad11ba04f469873251913742617e877b73 /libs/hwui/FrameMetricsObserver.h | |
parent | dfb85a2b828bd9c8a93c777113392de8890a43b8 (diff) |
Make frame number type consistent
The frame numbers are ultimately stored as uint64_t so to avoid any implementation dependent casting we make sure all direct and indirect references to this value are stored as uint64_t
Test: N/A
Change-Id: I080c94b1007f2e884cf0fa3583bf51badc913a05
Diffstat (limited to 'libs/hwui/FrameMetricsObserver.h')
-rw-r--r-- | libs/hwui/FrameMetricsObserver.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/hwui/FrameMetricsObserver.h b/libs/hwui/FrameMetricsObserver.h index 2ae790106fae..498ec5793cab 100644 --- a/libs/hwui/FrameMetricsObserver.h +++ b/libs/hwui/FrameMetricsObserver.h @@ -26,11 +26,11 @@ public: virtual void notify(const int64_t* buffer) = 0; bool waitForPresentTime() const { return mWaitForPresentTime; }; - void reportMetricsFrom(int64_t frameNumber, int32_t surfaceControlId) { + void reportMetricsFrom(uint64_t frameNumber, int32_t surfaceControlId) { mAttachedFrameNumber = frameNumber; mSurfaceControlId = surfaceControlId; }; - int64_t attachedFrameNumber() const { return mAttachedFrameNumber; }; + uint64_t attachedFrameNumber() const { return mAttachedFrameNumber; }; int32_t attachedSurfaceControlId() const { return mSurfaceControlId; }; /** @@ -64,7 +64,7 @@ private: // The frame number the metrics observer was attached on. Metrics will be sent from this frame // number (inclusive) onwards in the case that the surface id is equal to mSurfaceControlId. - int64_t mAttachedFrameNumber; + uint64_t mAttachedFrameNumber; }; } // namespace uirenderer |