| Flutter Impeller |

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
8 #include "impeller/renderer/backend/gles/reactor_gles.h"
9
10 namespace impeller::interop {
11
12 class ReactorWorkerGLES final : public ReactorGLES::Worker {
13 public:
14 ReactorWorkerGLES();
15
16 // |ReactorGLES::Worker|
17 ~ReactorWorkerGLES() override;
18
19 // |ReactorGLES::Worker|
20 bool CanReactorReactOnCurrentThreadNow(
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_
impeller::ReactorGLES::Worker
A delegate implemented by a thread on which an OpenGL context is current. There may be multiple worke...
Definition: reactor_gles.h:69
impeller::ReactorGLES
The reactor attempts to make thread-safe usage of OpenGL ES easier to reason about.
Definition: reactor_gles.h:57
impeller::interop::ReactorWorkerGLES
Definition: reactor_worker_gles.h:12
impeller::interop::ReactorWorkerGLES::CanReactorReactOnCurrentThreadNow
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: reactor_worker_gles.cc:14
impeller::interop::ReactorWorkerGLES::ReactorWorkerGLES
ReactorWorkerGLES()
Definition: reactor_worker_gles.cc:9
impeller::interop::ReactorWorkerGLES::~ReactorWorkerGLES
~ReactorWorkerGLES() override
impeller::interop
Definition: context_gles.cc:12
reactor_gles.h