Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
flow
testing
gl_context_switch_test.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_FLOW_TESTING_GL_CONTEXT_SWITCH_TEST_H_
6
#define FLUTTER_FLOW_TESTING_GL_CONTEXT_SWITCH_TEST_H_
7
8
#include "flutter/common/graphics/gl_context_switch.h"
9
#include "gtest/gtest.h"
10
11
namespace
flutter
{
12
namespace
testing {
13
14
//------------------------------------------------------------------------------
15
/// The renderer context used for testing
16
class
TestSwitchableGLContext
:
public
SwitchableGLContext
{
17
public
:
18
explicit
TestSwitchableGLContext
(
int
context);
19
20
~TestSwitchableGLContext
()
override
;
21
22
bool
SetCurrent
()
override
;
23
24
bool
RemoveCurrent
()
override
;
25
26
int
GetContext
();
27
28
static
int
GetCurrentContext
();
29
30
//------------------------------------------------------------------------------
31
/// Set the current context
32
///
33
/// This is to mimic how other programs outside flutter sets the context.
34
static
void
SetCurrentContext
(
int
context);
35
36
private
:
37
int
context_;
38
39
FML_DISALLOW_COPY_AND_ASSIGN(
TestSwitchableGLContext
);
40
};
41
42
}
// namespace testing
43
}
// namespace flutter
44
45
#endif
// FLUTTER_FLOW_TESTING_GL_CONTEXT_SWITCH_TEST_H_
flutter::SwitchableGLContext
Definition:
gl_context_switch.h:23
flutter::testing::TestSwitchableGLContext
The renderer context used for testing.
Definition:
gl_context_switch_test.h:16
flutter::testing::TestSwitchableGLContext::SetCurrent
bool SetCurrent() override
Definition:
gl_context_switch_test.cc:17
flutter::testing::TestSwitchableGLContext::TestSwitchableGLContext
TestSwitchableGLContext(int context)
Definition:
gl_context_switch_test.cc:12
flutter::testing::TestSwitchableGLContext::GetContext
int GetContext()
Definition:
gl_context_switch_test.cc:27
flutter::testing::TestSwitchableGLContext::GetCurrentContext
static int GetCurrentContext()
Definition:
gl_context_switch_test.cc:31
flutter::testing::TestSwitchableGLContext::SetCurrentContext
static void SetCurrentContext(int context)
Definition:
gl_context_switch_test.cc:35
flutter::testing::TestSwitchableGLContext::RemoveCurrent
bool RemoveCurrent() override
Definition:
gl_context_switch_test.cc:22
flutter::testing::TestSwitchableGLContext::~TestSwitchableGLContext
~TestSwitchableGLContext() override
flutter
Definition:
asset_manager.cc:10
Generated on Sun Jun 23 2024 21:54:57 for Flutter Engine by
1.9.4