Flutter Engine
 
Loading...
Searching...
No Matches
embedder_test_metal.mm
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
6
8
9namespace flutter::testing {
10
11EmbedderTestContext& EmbedderTest::GetMetalContext() {
12 if (!metal_context_) {
13 metal_context_ = std::make_unique<EmbedderTestContextMetal>(GetFixturesDirectory());
14 }
15 return *metal_context_.get();
16}
17
18} // namespace flutter::testing
std::string GetFixturesDirectory() const
EmbedderTestContext & GetMetalContext()
std::unique_ptr< EmbedderTestContext > metal_context_