From cbc409cfdf0b6e82a3feb33afd4c62fee9a0b4be Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Thu, 27 Jul 2023 13:27:39 -0700 Subject: [PATCH] Revert "[engine] disable picture complexity raster caching" (flutter/engine#44026) Reverts flutter/engine#43897 --- engine/src/flutter/display_list/benchmarking/dl_complexity_gl.h | 2 +- .../src/flutter/display_list/benchmarking/dl_complexity_metal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/display_list/benchmarking/dl_complexity_gl.h b/engine/src/flutter/display_list/benchmarking/dl_complexity_gl.h index 6b11155fa5..9fc7596687 100644 --- a/engine/src/flutter/display_list/benchmarking/dl_complexity_gl.h +++ b/engine/src/flutter/display_list/benchmarking/dl_complexity_gl.h @@ -22,7 +22,7 @@ class DisplayListGLComplexityCalculator bool ShouldBeCached(unsigned int complexity_score) override { // Set cache threshold at 1ms - return false; + return complexity_score > 200000u; } void SetComplexityCeiling(unsigned int ceiling) override { diff --git a/engine/src/flutter/display_list/benchmarking/dl_complexity_metal.h b/engine/src/flutter/display_list/benchmarking/dl_complexity_metal.h index 0a4310edb2..aa63863fa4 100644 --- a/engine/src/flutter/display_list/benchmarking/dl_complexity_metal.h +++ b/engine/src/flutter/display_list/benchmarking/dl_complexity_metal.h @@ -22,7 +22,7 @@ class DisplayListMetalComplexityCalculator bool ShouldBeCached(unsigned int complexity_score) override { // Set cache threshold at 1ms - return false; + return complexity_score > 200000u; } void SetComplexityCeiling(unsigned int ceiling) override {