From ae19d36ca7f4501f4fb2ca164a7403038b563902 Mon Sep 17 00:00:00 2001 From: George Wright Date: Wed, 2 Feb 2022 09:37:52 -0800 Subject: [PATCH] Small cleanup to DisplayListComplexityScoreCalculator code (flutter/engine#31211) --- engine/src/flutter/display_list/display_list_complexity.cc | 1 - engine/src/flutter/flow/raster_cache.cc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/src/flutter/display_list/display_list_complexity.cc b/engine/src/flutter/display_list/display_list_complexity.cc index c651125082..53cef3cea2 100644 --- a/engine/src/flutter/display_list/display_list_complexity.cc +++ b/engine/src/flutter/display_list/display_list_complexity.cc @@ -1,4 +1,3 @@ - // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. diff --git a/engine/src/flutter/flow/raster_cache.cc b/engine/src/flutter/flow/raster_cache.cc index ab4f2a8ae4..3471f9ff80 100644 --- a/engine/src/flutter/flow/raster_cache.cc +++ b/engine/src/flutter/flow/raster_cache.cc @@ -111,7 +111,7 @@ static bool IsDisplayListWorthRasterizing( // TODO(abarth): We should find a better heuristic here that lets us avoid // wasting memory on trivial layers that are easy to re-rasterize every frame. - int complexity_score = complexity_calculator->compute(display_list); + unsigned int complexity_score = complexity_calculator->compute(display_list); return complexity_calculator->should_be_cached(complexity_score); }