Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
gl_context_switch_test.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
6
7namespace flutter {
8namespace testing {
9
10static thread_local std::unique_ptr<int> current_context;
11
13 : context_(context){};
14
16
18 SetCurrentContext(context_);
19 return true;
20};
21
24 return true;
25};
26
28 return context_;
29};
30
34
36 current_context.reset(new int(context));
37};
38} // namespace testing
39} // namespace flutter
static thread_local std::unique_ptr< int > current_context