Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
tester_context_mtl_factory.h
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#ifndef FLUTTER_SHELL_TESTING_TESTER_CONTEXT_MTL_FACTORY_H_
6#define FLUTTER_SHELL_TESTING_TESTER_CONTEXT_MTL_FACTORY_H_
7
8#include <memory>
10
11// Impeller should only be enabled if the Metal backend is enabled.
12#define TESTER_ENABLE_METAL \
13 (IMPELLER_SUPPORTS_RENDERING && IMPELLER_ENABLE_METAL)
14
15namespace flutter {
16
18 public:
19 static std::unique_ptr<TesterContext> Create();
20};
21
22} // namespace flutter
23
24#endif // FLUTTER_SHELL_TESTING_TESTER_CONTEXT_MTL_FACTORY_H_
static std::unique_ptr< TesterContext > Create()