summaryrefslogtreecommitdiff
path: root/libs/hwui
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2021-07-07 19:18:34 -0400
committerJohn Reck <jreck@google.com>2021-07-07 19:18:34 -0400
commitb7039c6aa50d9ce413849d8c78600375035d6ba7 (patch)
tree219f2fcbb88bddd8f421bfd7dbe6c4a08ecd5a6e /libs/hwui
parent315a26781c9557fa0dbdae9c5d273102de3d8e6c (diff)
Reduce number of weakrefs per frame
Disable end-to-end input latency metric to reduce the number of JNI WeakGlobalRef acquires per-frame. Bug: 189738006 Test: Observe trace section no longer appears in calculator Change-Id: I062dad8e7cec93cca5599e51d2b0b1a1b6e39a07
Diffstat (limited to 'libs/hwui')
-rw-r--r--libs/hwui/renderthread/CanvasContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp
index 81cee6103d22..4dcd5af39ca5 100644
--- a/libs/hwui/renderthread/CanvasContext.cpp
+++ b/libs/hwui/renderthread/CanvasContext.cpp
@@ -644,6 +644,7 @@ void CanvasContext::reportMetricsWithPresentTime() {
if (mNativeSurface == nullptr) {
return;
}
+ ATRACE_CALL();
FrameInfo* forthBehind;
int64_t frameNumber;
{ // acquire lock