Home
last modified time | relevance | path

Searched refs:ThreadState (Results 1 – 6 of 6) sorted by relevance

/frameworks/opt/gamesdk/samples/bouncyball/app/src/main/cpp/
DRenderer.cpp43 mWorkerThread.run([=](ThreadState *threadState) { in setWindow()
65 mWorkerThread.run([this](ThreadState *threadState) { in start()
77 mWorkerThread.run([=](ThreadState *threadState) { threadState->isStarted = false; }); in stop()
87 [=](ThreadState *threadState) { if (threadState->isStarted) draw(threadState); }); in requestDraw()
90 Renderer::ThreadState::ThreadState() { in ThreadState() function in samples::Renderer::ThreadState
132 Renderer::ThreadState::~ThreadState() { in ~ThreadState()
138 void Renderer::ThreadState::onSettingsChanged(const Settings *settings) { in onSettingsChanged()
143 void Renderer::ThreadState::clearSurface() { in clearSurface()
151 bool Renderer::ThreadState::configHasAttribute(EGLint attribute, EGLint value) { in configHasAttribute()
157 EGLBoolean Renderer::ThreadState::makeCurrent(EGLSurface surface) { in makeCurrent()
[all …]
DRenderer.h61 class ThreadState {
63 ThreadState();
65 ~ThreadState();
92 void draw(ThreadState *threadState);
95 WorkerThread<ThreadState> mWorkerThread = {"Renderer", Affinity::Odd};
DWorkerThread.h29 template<class ThreadState>
32 using Work = std::function<void(ThreadState *)>;
38 auto settingsChanged = [this](ThreadState *threadState) { onSettingsChanged(threadState); }; in WorkerThread()
76 void onSettingsChanged(ThreadState *threadState) { in onSettingsChanged()
86 ThreadState threadState; in threadMain()
114 std::queue<std::function<void(ThreadState *)>> mWorkQueue GUARDED_BY(mWorkMutex);
/frameworks/base/libs/hwui/debug/
Dnullegl.cpp30 } ThreadState; typedef
43 ThreadState* getThreadState() { in getThreadState()
44 ThreadState* ptr; in getThreadState()
46 if ((ptr = (ThreadState*)pthread_getspecific(ThreadStateKey)) == NULL) { in getThreadState()
47 ptr = (ThreadState*)calloc(1, sizeof(ThreadState)); in getThreadState()
126 ThreadState* state = getThreadState(); in eglMakeCurrent()
/frameworks/native/libs/binder/
DBufferedTextOutput.cpp86 struct BufferedTextOutput::ThreadState struct in android::BufferedTextOutput
95 BufferedTextOutput::ThreadState* BufferedTextOutput::getThreadState() in getThreadState()
97 ThreadState* ts = (ThreadState*) thread_store_get( &tls ); in getThreadState()
99 ts = new ThreadState; in getThreadState()
106 delete ((ThreadState*)st); in threadDestructor()
268 ThreadState* ts = getThreadState(); in getBuffer()
/frameworks/native/libs/binder/include/binder/
DBufferedTextOutput.h49 struct ThreadState;
51 static ThreadState*getThreadState();