From 9ce2bf7e0c47fdf178c528b3a5594756e49e071e Mon Sep 17 00:00:00 2001 From: John Reck Date: Mon, 2 Jul 2018 18:33:32 -0700 Subject: 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 --- libs/hwui/RenderNode.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libs/hwui/RenderNode.h') diff --git a/libs/hwui/RenderNode.h b/libs/hwui/RenderNode.h index dc962f307903..8393288d2ffd 100644 --- a/libs/hwui/RenderNode.h +++ b/libs/hwui/RenderNode.h @@ -28,6 +28,7 @@ #include #include "AnimatorManager.h" +#include "CanvasTransform.h" #include "Debug.h" #include "DisplayList.h" #include "Matrix.h" @@ -208,6 +209,14 @@ public: void output(std::ostream& output, uint32_t level); + void setUsageHint(UsageHint usageHint) { + mUsageHint = usageHint; + } + + UsageHint usageHint() const { + return mUsageHint; + } + private: void computeOrderingImpl(RenderNodeOp* opState, std::vector* compositedChildrenOfProjectionSurface, @@ -263,6 +272,8 @@ private: sp mPositionListener; + UsageHint mUsageHint = UsageHint::Unknown; + // METHODS & FIELDS ONLY USED BY THE SKIA RENDERER public: /** -- cgit v1.2.3-59-g8ed1b