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/tests/main.cpp | |
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/tests/main.cpp')
-rw-r--r-- | libs/hwui/tests/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/hwui/tests/main.cpp b/libs/hwui/tests/main.cpp index b6d2c4d..0431e22 100644 --- a/libs/hwui/tests/main.cpp +++ b/libs/hwui/tests/main.cpp @@ -85,7 +85,7 @@ public: proxy->initialize(surface); float lightX = width / 2.0; proxy->setup(width, height, (Vector3){lightX, dp(-200.0f), dp(800.0f)}, - dp(800.0f), 255 * 0.075, 255 * 0.15); + dp(800.0f), 255 * 0.075, 255 * 0.15, gDisplay.density); android::uirenderer::Rect DUMMY; @@ -100,8 +100,7 @@ public: ATRACE_NAME("UI-Draw Frame"); animation.doFrame(i); - nsecs_t frameTimeNs = systemTime(CLOCK_MONOTONIC); - proxy->syncAndDrawFrame(frameTimeNs, 0, gDisplay.density); + proxy->syncAndDrawFrame(); } sleep(5); |