Flutter Engine
The Flutter Engine
shell
common
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
options
const char * options
Definition:
CommonFlagsConfig.cpp:43
GrBackendApi::kOpenGL
@ kOpenGL
context_options.h
flutter::testing::TEST
TEST(DisplayListComplexity, EmptyDisplayList)
Definition:
dl_complexity_unittests.cc:47
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.
EXPECT_TRUE
#define EXPECT_TRUE(handle)
Definition:
unit_test.h:678
Generated on Sun Jun 23 2024 21:55:07 for Flutter Engine by
1.9.4