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:
@@ -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"
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user