Flutter Engine
Loading...
Searching...
No Matches
context_options_unittests.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 "
context_options.h
"
6
7
#include "gtest/gtest.h"
8
9
namespace
flutter
{
10
namespace
testing {
11
12
TEST
(ContextOptionsTest, OpenGLDisablesStencilBuffers) {
13
auto
options =
MakeDefaultContextOptions
(
flutter::ContextType::kRender
,
14
GrBackendApi::kOpenGL);
15
EXPECT_TRUE(options.fAvoidStencilBuffers);
16
}
17
18
}
// namespace testing
19
}
// namespace flutter
context_options.h
flutter::testing::TEST
TEST(NativeAssetsManagerTest, NoAvailableAssets)
Definition
native_assets_unittests.cc:68
flutter
Definition
asset_manager.cc:10
flutter::MakeDefaultContextOptions
GrContextOptions MakeDefaultContextOptions(ContextType type, std::optional< GrBackendApi > api)
Initializes GrContextOptions with values suitable for Flutter. The options can be further tweaked bef...
Definition
context_options.cc:13
flutter::ContextType::kRender
@ kRender
The context is used to render to a texture or renderbuffer.
shell
common
context_options_unittests.cc
Generated on Wed Nov 5 2025 21:33:15 for Flutter Engine by
1.9.8