Flutter Engine
 
Loading...
Searching...
No Matches
reactor_worker_gles.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_IMPELLER_TOOLKIT_INTEROP_BACKEND_GLES_REACTOR_WORKER_GLES_H_
6#define FLUTTER_IMPELLER_TOOLKIT_INTEROP_BACKEND_GLES_REACTOR_WORKER_GLES_H_
7
9
10namespace impeller::interop {
11
13 public:
15
16 // |ReactorGLES::Worker|
18
19 // |ReactorGLES::Worker|
21 const ReactorGLES& reactor) const override;
22
23 private:
24 std::thread::id thread_id_;
25
26 ReactorWorkerGLES(const ReactorWorkerGLES&) = delete;
27
28 ReactorWorkerGLES& operator=(const ReactorWorkerGLES&) = delete;
29};
30
31} // namespace impeller::interop
32
33#endif // FLUTTER_IMPELLER_TOOLKIT_INTEROP_BACKEND_GLES_REACTOR_WORKER_GLES_H_
A delegate implemented by a thread on which an OpenGL context is current. There may be multiple worke...
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 ...