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
5
#include "
impeller/toolkit/interop/backend/gles/reactor_worker_gles.h
"
6
7
namespace
impeller::interop
{
8
9
ReactorWorkerGLES::ReactorWorkerGLES
()
10
: thread_id_(
std
::this_thread::get_id()) {}
11
12
ReactorWorkerGLES::~ReactorWorkerGLES
() =
default
;
13
14
bool
ReactorWorkerGLES::CanReactorReactOnCurrentThreadNow
(
15
const
ReactorGLES
& reactor)
const
{
16
return
thread_id_ == std::this_thread::get_id();
17
}
18
19
}
// namespace impeller::interop
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::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
std
Definition
ref_ptr.h:261
reactor_worker_gles.h
impeller
toolkit
interop
backend
gles
reactor_worker_gles.cc
Generated on Thu Nov 6 2025 16:11:24 for Flutter Engine by
1.9.8