Flutter Engine
 
Loading...
Searching...
No Matches
reactor_worker_gles.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 impeller::interop {
8
10 : thread_id_(std::this_thread::get_id()) {}
11
13
15 const ReactorGLES& reactor) const {
16 return thread_id_ == std::this_thread::get_id();
17}
18
19} // namespace impeller::interop
The reactor attempts to make thread-safe usage of OpenGL ES easier to reason about.
bool CanReactorReactOnCurrentThreadNow(const ReactorGLES &reactor) const override
Determines the ability of the worker to service a reaction on the current thread. The OpenGL context ...
Definition ref_ptr.h:261