forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_gl_context.h
More file actions
31 lines (22 loc) · 838 Bytes
/
test_gl_context.h
File metadata and controls
31 lines (22 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_TESTING_TEST_GL_CONTEXT_H_
#define FLUTTER_TESTING_TEST_GL_CONTEXT_H_
namespace flutter::testing {
struct TestEGLContext {
explicit TestEGLContext();
~TestEGLContext();
using EGLDisplay = void*;
using EGLContext = void*;
using EGLConfig = void*;
EGLDisplay display;
EGLContext onscreen_context;
EGLContext offscreen_context;
// EGLConfig is technically a property of the surfaces, no the context,
// but it's not that well separated in EGL (e.g. when
// EGL_KHR_no_config_context is not supported), so we just store it here.
EGLConfig config;
};
} // namespace flutter::testing
#endif // FLUTTER_TESTING_TEST_GL_CONTEXT_H_