diff options
author | John Reck <jreck@google.com> | 2018-05-07 08:12:07 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2018-05-09 11:39:37 -0700 |
commit | e170fb6686c3e88cee6e32f4e3eb12fcf9bfe931 (patch) | |
tree | bf0ccbbcd2f89ccb468b216e14670451fedc3221 /libs/hwui/ProfileData.cpp | |
parent | 33f4f1cb1645635f8b5c369e1dddda84e0396c34 (diff) |
A better HW Bitmap uploader
Move all HW bitmap upload operations off of RenderThread.
Ensure EGL context outlives all upload requests
Bug: 79250950
Test: builds, boots, systrace is good, CTS bitmap tests pass
Change-Id: I5ace6c516d33b1afdf1a407cd8b183f6b60c22c1
Diffstat (limited to 'libs/hwui/ProfileData.cpp')
-rw-r--r-- | libs/hwui/ProfileData.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/ProfileData.cpp b/libs/hwui/ProfileData.cpp index 16966619aace..70ca4e3e8074 100644 --- a/libs/hwui/ProfileData.cpp +++ b/libs/hwui/ProfileData.cpp @@ -104,8 +104,8 @@ void ProfileData::dump(int fd) const { dprintf(fd, "\nStats since: %" PRIu64 "ns", mStatStartTime); dprintf(fd, "\nTotal frames rendered: %u", mTotalFrameCount); dprintf(fd, "\nJanky frames: %u (%.2f%%)", mJankFrameCount, - mTotalFrameCount == 0 ? 0.0f : - (float)mJankFrameCount / (float)mTotalFrameCount * 100.0f); + mTotalFrameCount == 0 ? 0.0f + : (float)mJankFrameCount / (float)mTotalFrameCount * 100.0f); dprintf(fd, "\n50th percentile: %ums", findPercentile(50)); dprintf(fd, "\n90th percentile: %ums", findPercentile(90)); dprintf(fd, "\n95th percentile: %ums", findPercentile(95)); |