diff options
author | Scott Lobdell <slobdell@google.com> | 2021-04-07 05:35:55 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-04-07 05:35:55 +0000 |
commit | 4e00df6fea7b8978354d0ef716d8c9dff5e2e589 (patch) | |
tree | 80a5dbbcff60d4af58e1777bd122a3ebe18703c1 /libs/hwui/renderthread/RenderThread.cpp | |
parent | aacaa6721eb652b3a54040bb4f866c1c2bd69606 (diff) | |
parent | 01c265f0a43b4d57b09d6c05d6ef72b97a91a2de (diff) |
Merge changes from topic "SP1A.210329.001" into s-keystone-qcom-dev
* changes:
Fix screen can not turn on with power key sometimes
Merge SP1A.210329.001
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.cpp')
-rw-r--r-- | libs/hwui/renderthread/RenderThread.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderThread.cpp b/libs/hwui/renderthread/RenderThread.cpp index 5dc02e8454ac..adf4aee8b931 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" @@ -40,6 +41,7 @@ #include <utils/Mutex.h> #include <thread> +#include <android-base/properties.h> #include <ui/FatVector.h> namespace android { @@ -251,6 +253,11 @@ void RenderThread::requireVkContext() { void RenderThread::initGrContextOptions(GrContextOptions& options) { options.fPreferExternalImagesOverES3 = true; options.fDisableDistanceFieldPaths = true; + if (android::base::GetBoolProperty(PROPERTY_REDUCE_OPS_TASK_SPLITTING, false)) { + options.fReduceOpsTaskSplitting = GrContextOptions::Enable::kYes; + } else { + options.fReduceOpsTaskSplitting = GrContextOptions::Enable::kNo; + } } void RenderThread::destroyRenderingContext() { |