summaryrefslogtreecommitdiff
path: root/libs/hwui/TreeInfo.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2018-09-21 14:30:19 -0700
committerJohn Reck <jreck@google.com>2018-09-24 09:34:18 -0700
commit1423e1331fa8b97d36950d143560a332b6c6bed7 (patch)
tree5c6b076f9a93eb2cc22601a2fe13a0eb1d473304 /libs/hwui/TreeInfo.h
parent4603406afe2667b1eac5b07bc21d3b44443a9e9a (diff)
Create plumbing for disabling force-dark
Test: sysui's rounded corners are no longer white Bug: 102591313 Change-Id: Id99ae38c354cef06b94a5fb79b5b1a9a216a514c
Diffstat (limited to 'libs/hwui/TreeInfo.h')
-rw-r--r--libs/hwui/TreeInfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/TreeInfo.h b/libs/hwui/TreeInfo.h
index f2766d6a5b6e..caa5762d174a 100644
--- a/libs/hwui/TreeInfo.h
+++ b/libs/hwui/TreeInfo.h
@@ -17,6 +17,7 @@
#pragma once
#include "utils/Macros.h"
+#include "Properties.h"
#include <utils/Timers.h>
@@ -93,6 +94,8 @@ public:
bool updateWindowPositions = false;
+ int disableForceDark = Properties::forceDarkMode ? 0 : 1;
+
struct Out {
bool hasFunctors = false;
// This is only updated if evaluateAnimations is true