Skip to content

Commit

Permalink
Remove complexity calculator with Slimpeller (flutter#53140)
Browse files Browse the repository at this point in the history
Will it blend?
  • Loading branch information
jonahwilliams authored May 31, 2024
1 parent 31b6a24 commit 4e86afc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions display_list/benchmarking/dl_complexity.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

#include "flutter/display_list/benchmarking/dl_complexity.h"
#include "flutter/display_list/benchmarking/dl_complexity_gl.h"
#if !SLIMPELLER
#include "flutter/display_list/benchmarking/dl_complexity_metal.h"
#endif // !SLIMPELLER
#include "flutter/display_list/display_list.h"

namespace flutter {
Expand All @@ -24,7 +26,11 @@ DisplayListComplexityCalculator* DisplayListComplexityCalculator::GetForBackend(
GrBackendApi backend) {
switch (backend) {
case GrBackendApi::kMetal:
#if !SLIMPELLER
return DisplayListMetalComplexityCalculator::GetInstance();
#else
return DisplayListNaiveComplexityCalculator::GetInstance();
#endif // !SLIMPELLER
case GrBackendApi::kOpenGL:
return DisplayListGLComplexityCalculator::GetInstance();
default:
Expand Down

0 comments on commit 4e86afc

Please sign in to comment.