Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
dl_complexity.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "flutter/display_list/benchmarking/dl_complexity.h"
6#include "flutter/display_list/benchmarking/dl_complexity_gl.h"
7#include "flutter/display_list/benchmarking/dl_complexity_metal.h"
8#include "flutter/display_list/display_list.h"
9
10namespace flutter {
11
12DisplayListNaiveComplexityCalculator*
13 DisplayListNaiveComplexityCalculator::instance_ = nullptr;
14
15DisplayListComplexityCalculator*
17 if (instance_ == nullptr) {
19 }
20 return instance_;
21}
22
34
39
40} // namespace flutter
const char * backend
GrBackendApi
Definition GrTypes.h:95
static DisplayListComplexityCalculator * GetForBackend(GrBackendApi backend)
static DisplayListComplexityCalculator * GetForSoftware()
static DisplayListGLComplexityCalculator * GetInstance()
static DisplayListMetalComplexityCalculator * GetInstance()
static DisplayListComplexityCalculator * GetInstance()