diff options
author | John Reck <jreck@google.com> | 2018-07-02 18:33:32 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2018-07-09 10:16:25 -0700 |
commit | 9ce2bf7e0c47fdf178c528b3a5594756e49e071e (patch) | |
tree | 7926a9c7ad0b14935666753c5604c948402b3cf1 /libs/hwui/Properties.cpp | |
parent | 8225c85200802198dae6fa05ccf87757365efb68 (diff) |
Auto-dark mode prototype
Experimental force_dark prototype mode. Enabled
by setting debug.hwui.force_dark to true.
Test: verified nothing changes without prop being set
Change-Id: Ib02f3f1a9c591cab1f312b827451f04c782c2f41
Diffstat (limited to 'libs/hwui/Properties.cpp')
-rw-r--r-- | libs/hwui/Properties.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/Properties.cpp b/libs/hwui/Properties.cpp index 0338a3aba97d..17bec1934490 100644 --- a/libs/hwui/Properties.cpp +++ b/libs/hwui/Properties.cpp @@ -60,6 +60,7 @@ bool Properties::forceDrawFrame = false; bool Properties::filterOutTestOverhead = false; bool Properties::disableVsync = false; bool Properties::skpCaptureEnabled = false; +bool Properties::forceDarkMode = false; bool Properties::enableRTAnimations = true; bool Properties::runningInEmulator = false; @@ -146,6 +147,8 @@ bool Properties::load() { runningInEmulator = property_get_bool(PROPERTY_QEMU_KERNEL, false); + forceDarkMode = property_get_bool(PROPERTY_FORCE_DARK, false); + return (prevDebugLayersUpdates != debugLayersUpdates) || (prevDebugOverdraw != debugOverdraw) || (prevDebugStencilClip != debugStencilClip); } |