| Flutter Impeller |

Public Member Functions | List of all members
impeller::interop::ReactorWorkerGLES Class Referencefinal

`#include <reactor_worker_gles.h>`

Inheritance diagram for impeller::interop::ReactorWorkerGLES:

## Public Member Functions
| ReactorWorkerGLES ()
| ~ReactorWorkerGLES () override
bool | CanReactorReactOnCurrentThreadNow (const ReactorGLES &reactor) const override
| Determines the ability of the worker to service a reaction on the current thread. The OpenGL context must be current on the thread if the worker says it is able to service a reaction. More...
Public Member Functions inherited from impeller::ReactorGLES::Worker
virtual | ~Worker ()=default

## Detailed Description

Definition at line 12 of file reactor_worker_gles.h.

## Constructor & Destructor Documentation

## ◆ ReactorWorkerGLES()

impeller::interop::ReactorWorkerGLES::ReactorWorkerGLES | ( |  | ) |

Definition at line 9 of file reactor_worker_gles.cc.

10 : thread_id_(std::this_thread::get_id()) {}

## ◆ ~ReactorWorkerGLES()

impeller::interop::ReactorWorkerGLES::~ReactorWorkerGLES | ( |  | ) |
| overridedefault

## Member Function Documentation

## ◆ CanReactorReactOnCurrentThreadNow()

bool impeller::interop::ReactorWorkerGLES::CanReactorReactOnCurrentThreadNow | ( | const ReactorGLES & | reactor | ) | const
| overridevirtual

Determines the ability of the worker to service a reaction on the current thread. The OpenGL context must be current on the thread if the worker says it is able to service a reaction.

Parameters

  [in] | reactor | The reactor

Returns
  If the worker is able to service a reaction. The reactor assumes the context is already current if true.

Implements impeller::ReactorGLES::Worker.

Definition at line 14 of file reactor_worker_gles.cc.

15 {
16 return thread_id_ == std::this_thread::get_id();
17 }

The documentation for this class was generated from the following files:

- impeller/toolkit/interop/backend/gles/reactor_worker_gles.h
- impeller/toolkit/interop/backend/gles/reactor_worker_gles.cc