diff options
| author | 2017-04-30 23:51:33 -0700 | |
|---|---|---|
| committer | 2017-04-30 23:54:08 -0700 | |
| commit | 06a2d2bf2319eef2f81b6d8d3f980cc484999bc9 (patch) | |
| tree | cb56cc832100fc2284465c548e522eb924568c14 /libs/hwui/JankTracker.cpp | |
| parent | 169681db26feb6d45fa6095cdc17c0cac0bf2ed9 (diff) | |
Remove no-op std::max call
This was calling std::max on an unsigned integer and 0, which is
essentially no-op. Remove this code.
Test: Build
Bug: 37752547
Change-Id: I74ce45b95960621dff11f574fbe1af60ad147cf0
Diffstat (limited to 'libs/hwui/JankTracker.cpp')
| -rw-r--r-- | libs/hwui/JankTracker.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libs/hwui/JankTracker.cpp b/libs/hwui/JankTracker.cpp index 2132c2b171dc..9c253c42cd8f 100644 --- a/libs/hwui/JankTracker.cpp +++ b/libs/hwui/JankTracker.cpp @@ -265,7 +265,6 @@ void JankTracker::addFrame(const FrameInfo& frame) { / kSlowFrameBucketIntervalMs; framebucket = std::min(framebucket, static_cast<uint32_t>(mData->slowFrameCounts.size() - 1)); - framebucket = std::max(framebucket, 0u); mData->slowFrameCounts[framebucket]++; } |