Flutter Engine
Loading...
Searching...
No Matches
test_gl_context.h
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
#ifndef FLUTTER_TESTING_TEST_GL_CONTEXT_H_
6
#define FLUTTER_TESTING_TEST_GL_CONTEXT_H_
7
8
namespace
flutter::testing
{
9
10
struct
TestEGLContext
{
11
explicit
TestEGLContext
();
12
13
~TestEGLContext
();
14
15
using
EGLDisplay
=
void
*;
16
using
EGLContext
=
void
*;
17
using
EGLConfig
=
void
*;
18
19
EGLDisplay
display
;
20
EGLContext
onscreen_context
;
21
EGLContext
offscreen_context
;
22
23
// EGLConfig is technically a property of the surfaces, no the context,
24
// but it's not that well separated in EGL (e.g. when
25
// EGL_KHR_no_config_context is not supported), so we just store it here.
26
EGLConfig
config
;
27
};
28
29
}
// namespace flutter::testing
30
31
#endif
// FLUTTER_TESTING_TEST_GL_CONTEXT_H_
flutter::testing
Definition
native_assets_unittests.cc:10
flutter::testing::TestEGLContext
Definition
test_gl_context.h:10
flutter::testing::TestEGLContext::EGLConfig
void * EGLConfig
Definition
test_gl_context.h:17
flutter::testing::TestEGLContext::EGLContext
void * EGLContext
Definition
test_gl_context.h:16
flutter::testing::TestEGLContext::~TestEGLContext
~TestEGLContext()
Definition
test_gl_context.cc:117
flutter::testing::TestEGLContext::config
EGLConfig config
Definition
test_gl_context.h:26
flutter::testing::TestEGLContext::display
EGLDisplay display
Definition
test_gl_context.h:19
flutter::testing::TestEGLContext::offscreen_context
EGLContext offscreen_context
Definition
test_gl_context.h:21
flutter::testing::TestEGLContext::EGLDisplay
void * EGLDisplay
Definition
test_gl_context.h:15
flutter::testing::TestEGLContext::onscreen_context
EGLContext onscreen_context
Definition
test_gl_context.h:20
flutter::testing::TestEGLContext::TestEGLContext
TestEGLContext()
Definition
test_gl_context.cc:62
testing
test_gl_context.h
Generated on Thu Nov 6 2025 16:11:29 for Flutter Engine by
1.9.8