From 5636cdeea43a1a6aac1ef9180c6a0034ebb9762c Mon Sep 17 00:00:00 2001 From: Adlai Holler Date: Thu, 25 Mar 2021 16:53:56 +0000 Subject: [PATCH] Move reduceOpsTaskSplitting property to Properties.h Bug: 183612348 Change-Id: I26ebb6898e88715b9bd5e6f89f934d843efd49c5 --- libs/hwui/Properties.h | 6 ++++++ libs/hwui/renderthread/RenderThread.cpp | 1 + libs/hwui/renderthread/RenderThread.h | 6 ------ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/libs/hwui/Properties.h b/libs/hwui/Properties.h index 42aa87b492e25..ea9cbd592d292 100644 --- a/libs/hwui/Properties.h +++ b/libs/hwui/Properties.h @@ -162,6 +162,12 @@ enum DebugLevel { */ #define PROPERTY_IS_EMULATOR "ro.boot.qemu" +/** + * Turns on the Skia GPU option "reduceOpsTaskSplitting" which improves GPU + * efficiency but may increase VRAM consumption. Default is "false". + */ +#define PROPERTY_REDUCE_OPS_TASK_SPLITTING "renderthread.skia.reduceopstasksplitting" + /////////////////////////////////////////////////////////////////////////////// // Misc /////////////////////////////////////////////////////////////////////////////// diff --git a/libs/hwui/renderthread/RenderThread.cpp b/libs/hwui/renderthread/RenderThread.cpp index db7642d99bb12..adf4aee8b931f 100644 --- a/libs/hwui/renderthread/RenderThread.cpp +++ b/libs/hwui/renderthread/RenderThread.cpp @@ -20,6 +20,7 @@ #include "CanvasContext.h" #include "DeviceInfo.h" #include "EglManager.h" +#include "Properties.h" #include "Readback.h" #include "RenderProxy.h" #include "VulkanManager.h" diff --git a/libs/hwui/renderthread/RenderThread.h b/libs/hwui/renderthread/RenderThread.h index 48e3e12536d2c..a7d1ba8dafd77 100644 --- a/libs/hwui/renderthread/RenderThread.h +++ b/libs/hwui/renderthread/RenderThread.h @@ -38,12 +38,6 @@ #include "thread/ThreadBase.h" #include "utils/TimeUtils.h" -/** - * (Bool) Turns on the Skia GPU option "reduceOpsTaskSplitting" which improves GPU - * efficiency but may increase VRAM consumption. Default is false. - */ -#define PROPERTY_REDUCE_OPS_TASK_SPLITTING "renderthread.skia.reduceopstasksplitting" - namespace android { class Bitmap;