summaryrefslogtreecommitdiff
path: root/libs/gui/BufferItemConsumer.cpp
diff options
context:
space:
mode:
author Matt Buckley <mattbuckley@google.com> 2024-11-17 01:56:15 +0000
committer Matt Buckley <mattbuckley@google.com> 2024-11-17 01:56:15 +0000
commitfeb30df98609fc7f1a290187092b97dba423eff5 (patch)
tree53df1ab872885f6e1ac3da61eaf781f87e58f0d5 /libs/gui/BufferItemConsumer.cpp
parent0bf29918e3569891da71c1adae76fb95f699dc3c (diff)
Add support for converting java hint sessions to native hint sessions
Add an API called "APerformanceHint_getSessionFromJava" for Java clients to access the native APerformanceHintSession objects that Java hint sessions wrap. This should will make the Java and Native APIs substantially more interoperable. This patch also makes the native code aware of when it is being used in Java, to allow it to have slightly different behavior, especially when it is being directly accessed through JNI. The main place where this mostly matters is in preventing clients from closing Java-owned sessions through the JNI, as that could cause weird behavior otherwise. Bug: 367803904 Test: atest HintManagerServiceTest Test: atest PerformanceHintNativeTestCases Flag: EXEMPT trivial refactor Change-Id: I9bae7f78b61e40037de63839103906c3e536a743
Diffstat (limited to 'libs/gui/BufferItemConsumer.cpp')
0 files changed, 0 insertions, 0 deletions