Always use Skia reduceOpsTaskSplitting

This feature was previously limited to high-end devices, but now that
there is a fallback when VRAM is limited, it will be enabled globally.

After the feature is rolled out to all major Skia clients, it will be
the only way things work.

Bug: 183612348
Change-Id: Ia99ec154b498ab9315ec5f5285241fde8136c4ab
This commit is contained in:
Adlai Holler
2021-04-20 14:37:29 +00:00
parent 7b526955cd
commit 108be5bcfa
2 changed files with 2 additions and 2 deletions

View File

@@ -178,7 +178,7 @@ enum DebugLevel {
/**
* Turns on the Skia GPU option "reduceOpsTaskSplitting" which improves GPU
* efficiency but may increase VRAM consumption. Default is "false".
* efficiency but may increase VRAM consumption. Default is "true".
*/
#define PROPERTY_REDUCE_OPS_TASK_SPLITTING "renderthread.skia.reduceopstasksplitting"

View File

@@ -275,7 +275,7 @@ void RenderThread::requireVkContext() {
void RenderThread::initGrContextOptions(GrContextOptions& options) {
options.fPreferExternalImagesOverES3 = true;
options.fDisableDistanceFieldPaths = true;
if (android::base::GetBoolProperty(PROPERTY_REDUCE_OPS_TASK_SPLITTING, false)) {
if (android::base::GetBoolProperty(PROPERTY_REDUCE_OPS_TASK_SPLITTING, true)) {
options.fReduceOpsTaskSplitting = GrContextOptions::Enable::kYes;
} else {
options.fReduceOpsTaskSplitting = GrContextOptions::Enable::kNo;