diff options
| author | 2021-02-04 18:29:11 +0000 | |
|---|---|---|
| committer | 2021-02-04 18:29:11 +0000 | |
| commit | 1aee20138c2259ed336e5d950c6d4967a316dea8 (patch) | |
| tree | 492ed1c0aafb6a95af48cc2062f9752066cd0d9f /libs/hwui/Properties.cpp | |
| parent | debc58e074613328bcfdeedf2ae06246fb0c6fa5 (diff) | |
| parent | f516e3a36e069e99477c027eda448c3d6121a028 (diff) | |
Merge "Fix render_ahead properties" into sc-dev
Diffstat (limited to 'libs/hwui/Properties.cpp')
| -rw-r--r-- | libs/hwui/Properties.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/hwui/Properties.cpp b/libs/hwui/Properties.cpp index 65f4e8c8ecec..e798f2a2bc69 100644 --- a/libs/hwui/Properties.cpp +++ b/libs/hwui/Properties.cpp @@ -129,8 +129,9 @@ bool Properties::load() {      runningInEmulator = base::GetBoolProperty(PROPERTY_QEMU_KERNEL, false); -    defaultRenderAhead = std::max(-1, std::min(2, base::GetIntProperty(PROPERTY_RENDERAHEAD, -            render_ahead().value_or(0)))); +    defaultRenderAhead = std::max( +            -1, +            std::min(2, base::GetIntProperty(PROPERTY_RENDERAHEAD, render_ahead().value_or(-1))));      return (prevDebugLayersUpdates != debugLayersUpdates) || (prevDebugOverdraw != debugOverdraw);  }  |