Flutter Engine
The Flutter Engine
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
9namespace flutter {
10namespace testing {
11
12TEST(ContextOptionsTest, OpenGLDisablesStencilBuffers) {
15 EXPECT_TRUE(options.fAvoidStencilBuffers);
16}
17
18} // namespace testing
19} // namespace flutter
const char * options
TEST(DisplayListComplexity, EmptyDisplayList)
GrContextOptions MakeDefaultContextOptions(ContextType type, std::optional< GrBackendApi > api)
Initializes GrContextOptions with values suitable for Flutter. The options can be further tweaked bef...
@ kRender
The context is used to render to a texture or renderbuffer.
#define EXPECT_TRUE(handle)
Definition: unit_test.h:678