Create plumbing for disabling force-dark
Test: sysui's rounded corners are no longer white
Bug: 102591313
Change-Id: Id99ae38c354cef06b94a5fb79b5b1a9a216a514c
diff --git a/libs/hwui/TreeInfo.h b/libs/hwui/TreeInfo.h
index f2766d6..caa5762 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 @@
bool updateWindowPositions = false;
+ int disableForceDark = Properties::forceDarkMode ? 0 : 1;
+
struct Out {
bool hasFunctors = false;
// This is only updated if evaluateAnimations is true