summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorKalesh Singh <kaleshsingh@google.com>2021-11-23 11:42:09 -0800
committerKalesh Singh <kaleshsingh@google.com>2021-11-23 12:08:24 -0800
commite164776ab0c5f32812f1db4aee2e4b517ccd3cd2 (patch)
tree795ccdb79cfeea5da0708d1a9a1a681211fd8139 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent611424795bcaf96b6f9f6ba0d9cc7f8febebe571 (diff)
Fix GL memory not being removed from lost RAM
Devices upgrading to S are not required to update their memtrack HAL implementation and won't support reporting the total GPU private memory. In these cases it's likely the HAL reports 0 for the total GPU private memory, since in S the HAL defition only overloads the already existing getMemory() API to report this. Return an error value in these cases to prevent swapping the sum of GL type memory for all processes with the total GPU private memory when not supported as doing this effectively leaves the GL memory as part of lost RAM. Bug: 203245390 Test: dumpsys meminfo Change-Id: I478143e435b047bf349bd4ec6808707a5db1505b Merged-In: I478143e435b047bf349bd4ec6808707a5db1505b
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions