Lines Matching refs:queue
39 mContext = mRenderThread.queue().runSync([&]() -> CanvasContext* { in RenderProxy()
54 mRenderThread.queue().runSync([this]() { delete mContext; }); in destroyContext()
60 mRenderThread.queue().post([this, swapBehavior]() { mContext->setSwapBehavior(swapBehavior); }); in setSwapBehavior()
64 return mRenderThread.queue().runSync([this]() -> bool { in loadSystemProperties()
76 mRenderThread.queue().runSync([this, name]() { mContext->setName(std::string(name)); }); in setName()
81 mRenderThread.queue().post([this, win = window, enableTimeout]() mutable { in setSurface()
88 mRenderThread.queue().post([=]() { mContext->allocateBuffers(); }); in allocateBuffers()
92 return mRenderThread.queue().runSync([this]() -> bool { return mContext->pauseSurface(); }); in pause()
96 mRenderThread.queue().runSync([this, stopped]() { mContext->setStopped(stopped); }); in setStopped()
100 mRenderThread.queue().post( in setLightAlpha()
105 mRenderThread.queue().post([=]() { mContext->setLightGeometry(lightCenter, lightRadius); }); in setLightGeometry()
109 mRenderThread.queue().post([=]() { mContext->setOpaque(opaque); }); in setOpaque()
113 mRenderThread.queue().post([=]() { mContext->setWideGamut(wideGamut); }); in setWideGamut()
128 mRenderThread.queue().runSync([=]() { mContext->destroy(); }); in destroy()
139 thread.queue().runSync(std::move(invoke)); in invokeFunctor()
141 thread.queue().post(std::move(invoke)); in invokeFunctor()
148 thread.queue().post([=]() { WebViewFunctorManager::instance().destroyFunctor(functor); }); in destroyFunctor()
152 return mRenderThread.queue().runSync([this]() -> auto { in createTextureLayer()
158 mRenderThread.queue().runSync([&]() { mContext->buildLayer(node); }); in buildLayer()
164 return thread.queue().runSync([&]() -> bool { in copyLayerInto()
178 return mRenderThread.queue().runSync([&]() { layer->detachSurfaceTexture(); }); in detachSurfaceTexture()
182 return mRenderThread.queue().runSync([&]() { mContext->destroyHardwareResources(); }); in destroyHardwareResources()
189 thread.queue().post([&thread, level]() { CanvasContext::trimMemory(thread, level); }); in trimMemory()
195 RenderThread::getInstance().queue().runSync( in overrideProperty()
200 mRenderThread.queue().runSync([]() {}); in fence()
204 static int maxTextureSize = RenderThread::getInstance().queue().runSync( in maxTextureSize()
210 mRenderThread.queue().runSync([this]() { mContext->stopDrawing(); }); in stopDrawing()
214 mRenderThread.queue().post([this]() { mContext->notifyFramePending(); }); in notifyFramePending()
218 mRenderThread.queue().runSync([&]() { in dumpProfileInfo()
233 mRenderThread.queue().runSync([=]() { mContext->resetFrameStats(); }); in resetProfileInfo()
237 return mRenderThread.queue().runSync([&]() -> auto { in frameTimePercentile()
245 thread.queue().runSync([&]() { thread.dumpGraphicsMemory(fd); }); in dumpGraphicsMemory()
251 rt.queue().post([&rt, fd = dup(fd)]() { in setProcessStatsBuffer()
259 rt.queue().post([&rt]() { rt.globalProfileData().rotateStorage(); }); in rotateProcessStatsBuffer()
267 mRenderThread.queue().post([=]() { mContext->addRenderNode(node, placeFront); }); in addRenderNode()
271 mRenderThread.queue().post([=]() { mContext->removeRenderNode(node); }); in removeRenderNode()
275 mRenderThread.queue().runSync([=]() { mContext->prepareAndDraw(node); }); in drawRenderNode()
284 mRenderThread.queue().post( in setPictureCapturedCallback()
297 mRenderThread.queue().post([this, observer = sp{observerPtr}]() { in addFrameMetricsObserver()
303 mRenderThread.queue().post([this, observer = sp{observerPtr}]() { in removeFrameMetricsObserver()
309 mRenderThread.queue().post([this, enable]() { mContext->setForceDark(enable); }); in setForceDark()
313 mRenderThread.queue().post( in setRenderAheadDepth()
320 return static_cast<int>(thread.queue().runSync([&]() -> auto { in copySurfaceInto()
346 renderThread->queue().postAt(estimatedNextVsync + 8_ms, task); in prepareToDraw()
348 renderThread->queue().post(task); in prepareToDraw()
359 return thread.queue().runSync( in copyHWBitmapInto()
371 thread.queue().post([&thread]() { thread.preload(); }); in preload()