Lines Matching refs:thread

133     RenderThread& thread = RenderThread::getInstance();  in invokeFunctor()  local
134 auto invoke = [&thread, functor]() { CanvasContext::invokeFunctor(thread, functor); }; in invokeFunctor()
139 thread.queue().runSync(std::move(invoke)); in invokeFunctor()
141 thread.queue().post(std::move(invoke)); in invokeFunctor()
147 RenderThread& thread = RenderThread::getInstance(); in destroyFunctor() local
148 thread.queue().post([=]() { WebViewFunctorManager::instance().destroyFunctor(functor); }); in destroyFunctor()
163 auto& thread = RenderThread::getInstance(); in copyLayerInto() local
164 return thread.queue().runSync([&]() -> bool { in copyLayerInto()
165 return thread.readback().copyLayerInto(layer, &bitmap) == CopyResult::Success; in copyLayerInto()
188 RenderThread& thread = RenderThread::getInstance(); in trimMemory() local
189 thread.queue().post([&thread, level]() { CanvasContext::trimMemory(thread, level); }); in trimMemory()
244 auto& thread = RenderThread::getInstance(); in dumpGraphicsMemory() local
245 thread.queue().runSync([&]() { thread.dumpGraphicsMemory(fd); }); in dumpGraphicsMemory()
319 auto& thread = RenderThread::getInstance(); in copySurfaceInto() local
320 return static_cast<int>(thread.queue().runSync([&]() -> auto { in copySurfaceInto()
321 return thread.readback().copySurfaceInto(window, Rect(left, top, right, bottom), bitmap); in copySurfaceInto()
354 RenderThread& thread = RenderThread::getInstance(); in copyHWBitmapInto() local
355 if (gettid() == thread.getTid()) { in copyHWBitmapInto()
357 return (int)thread.readback().copyHWBitmapInto(hwBitmap, bitmap); in copyHWBitmapInto()
359 return thread.queue().runSync( in copyHWBitmapInto()
360 [&]() -> int { return (int)thread.readback().copyHWBitmapInto(hwBitmap, bitmap); }); in copyHWBitmapInto()
370 auto& thread = RenderThread::getInstance(); in preload() local
371 thread.queue().post([&thread]() { thread.preload(); }); in preload()