diff options
author | John Reck <jreck@google.com> | 2015-02-19 14:36:50 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2015-02-20 08:27:38 -0800 |
commit | ba6adf66d3c44c0aa2fd8a224862ff1901d64300 (patch) | |
tree | 8172a893f00caa283cf0386dd3d585ca8fac867c /libs/hwui/renderthread/RenderThread.h | |
parent | 004a46eb171bc86a3d40eb8fc6a4d9eed48027c7 (diff) | |
download | frameworks_base-ba6adf66d3c44c0aa2fd8a224862ff1901d64300.zip frameworks_base-ba6adf66d3c44c0aa2fd8a224862ff1901d64300.tar.gz frameworks_base-ba6adf66d3c44c0aa2fd8a224862ff1901d64300.tar.bz2 |
Initial attempt at jank-tracking stat collection
Is a bit naive, perhaps overly aggressive, but sorta works
Change-Id: I01a774e00dbe681439c02557d9728ae43c45ce50
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.h')
-rw-r--r-- | libs/hwui/renderthread/RenderThread.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libs/hwui/renderthread/RenderThread.h b/libs/hwui/renderthread/RenderThread.h index 8fc8ca5..f169424 100644 --- a/libs/hwui/renderthread/RenderThread.h +++ b/libs/hwui/renderthread/RenderThread.h @@ -19,8 +19,8 @@ #include "RenderTask.h" -#include <memory> -#include <set> +#include "../JankTracker.h" +#include "TimeLord.h" #include <cutils/compiler.h> #include <utils/Looper.h> @@ -28,7 +28,8 @@ #include <utils/Singleton.h> #include <utils/Thread.h> -#include "TimeLord.h" +#include <memory> +#include <set> namespace android { @@ -85,9 +86,12 @@ public: // the next vsync. If it is not currently registered this does nothing. void pushBackFrameCallback(IFrameCallback* callback); + void setFrameInterval(nsecs_t frameInterval); + TimeLord& timeLord() { return mTimeLord; } RenderState& renderState() { return *mRenderState; } EglManager& eglManager() { return *mEglManager; } + JankTracker& jankTracker() { return *mJankTracker; } protected: virtual bool threadLoop() override; @@ -132,6 +136,8 @@ private: TimeLord mTimeLord; RenderState* mRenderState; EglManager* mEglManager; + + JankTracker* mJankTracker = nullptr; }; } /* namespace renderthread */ |