Lines Matching refs:mContext

44         : mRenderThread(RenderThread::getInstance()), mContext(nullptr) {  in RenderProxy()
45 mContext = mRenderThread.queue().runSync([&]() -> CanvasContext* { in RenderProxy()
48 mDrawFrameTask.setContext(&mRenderThread, mContext, rootRenderNode); in RenderProxy()
56 if (mContext) { in destroyContext()
60 mRenderThread.queue().runSync([this]() { delete mContext; }); in destroyContext()
61 mContext = nullptr; in destroyContext()
66 mRenderThread.queue().post([this, swapBehavior]() { mContext->setSwapBehavior(swapBehavior); }); in setSwapBehavior()
72 if (mContext->profiler().consumeProperties()) { in loadSystemProperties()
82 mRenderThread.queue().runSync([this, name]() { mContext->setName(std::string(name)); }); in setName()
87 mContext->setSurface(std::move(surf), enableTimeout); in setSurface()
92 mRenderThread.queue().post([=]() { mContext->allocateBuffers(); }); in allocateBuffers()
96 return mRenderThread.queue().runSync([this]() -> bool { return mContext->pauseSurface(); }); in pause()
100 mRenderThread.queue().runSync([this, stopped]() { mContext->setStopped(stopped); }); in setStopped()
105 [=]() { mContext->setLightAlpha(ambientShadowAlpha, spotShadowAlpha); }); in setLightAlpha()
109 mRenderThread.queue().post([=]() { mContext->setLightGeometry(lightCenter, lightRadius); }); in setLightGeometry()
113 mRenderThread.queue().post([=]() { mContext->setOpaque(opaque); }); in setOpaque()
117 mRenderThread.queue().post([=]() { mContext->setWideGamut(wideGamut); }); in setWideGamut()
132 mRenderThread.queue().runSync([=]() { mContext->destroy(); }); in destroy()
157 return mContext->createTextureLayer(); in createTextureLayer()
162 mRenderThread.queue().runSync([&]() { mContext->buildLayer(node); }); in buildLayer()
186 return mRenderThread.queue().runSync([&]() { mContext->destroyHardwareResources(); }); in destroyHardwareResources()
214 mRenderThread.queue().runSync([this]() { mContext->stopDrawing(); }); in stopDrawing()
218 mRenderThread.queue().post([this]() { mContext->notifyFramePending(); }); in notifyFramePending()
223 mContext->profiler().dumpData(fd); in dumpProfileInfo()
225 mContext->dumpFrames(fd); in dumpProfileInfo()
231 mContext->resetFrameStats(); in dumpProfileInfo()
237 mRenderThread.queue().runSync([=]() { mContext->resetFrameStats(); }); in resetProfileInfo()
271 mRenderThread.queue().post([=]() { mContext->addRenderNode(node, placeFront); }); in addRenderNode()
275 mRenderThread.queue().post([=]() { mContext->removeRenderNode(node); }); in removeRenderNode()
279 mRenderThread.queue().runSync([=]() { mContext->prepareAndDraw(node); }); in drawRenderNode()
289 [this, cb = callback]() { mContext->setPictureCapturedCallback(cb); }); in setPictureCapturedCallback()
302 mContext->addFrameMetricsObserver(observer.get()); in addFrameMetricsObserver()
308 mContext->removeFrameMetricsObserver(observer.get()); in removeFrameMetricsObserver()
313 mRenderThread.queue().post([this, enable]() { mContext->setForceDark(enable); }); in setForceDark()
318 [context = mContext, renderAhead] { context->setRenderAheadDepth(renderAhead); }); in setRenderAheadDepth()