Small cleanup to DisplayListComplexityScoreCalculator code (flutter/engine#31211)

This commit is contained in:
George Wright
2022-02-02 09:37:52 -08:00
committed by GitHub
parent b0947ab714
commit ae19d36ca7
2 changed files with 1 additions and 2 deletions

View File

@@ -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.

View File

@@ -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);
}