Flutter Engine
Loading...
Searching...
No Matches
embedder_test_gl.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/shell/platform/embedder/tests/embedder_test.h
"
6
7
#include "
flutter/shell/platform/embedder/tests/embedder_test_context_gl.h
"
8
9
namespace
flutter::testing
{
10
11
EmbedderTestContext&
EmbedderTest::GetGLContext
() {
12
if
(!
gl_context_
) {
13
gl_context_
=
14
std::make_unique<EmbedderTestContextGL>(
GetFixturesDirectory
());
15
}
16
return
*
gl_context_
.get();
17
}
18
19
}
// namespace flutter::testing
flutter::testing::EmbedderTest::gl_context_
std::unique_ptr< EmbedderTestContext > gl_context_
Definition
embedder_test.h:68
flutter::testing::EmbedderTest::GetFixturesDirectory
std::string GetFixturesDirectory() const
Definition
embedder_test.cc:16
flutter::testing::EmbedderTest::GetGLContext
EmbedderTestContext & GetGLContext()
Definition
embedder_test.cc:31
embedder_test.h
embedder_test_context_gl.h
flutter::testing
Definition
native_assets_unittests.cc:10
shell
platform
embedder
tests
embedder_test_gl.cc
Generated on Thu Nov 6 2025 16:11:27 for Flutter Engine by
1.9.8