Home
last modified time | relevance | path

Searched refs:mRenderThread (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/libs/hwui/renderthread/
DRenderProxy.cpp44 : mRenderThread(RenderThread::getInstance()), mContext(nullptr) { in RenderProxy()
45 mContext = mRenderThread.queue().runSync([&]() -> CanvasContext* { in RenderProxy()
46 return CanvasContext::create(mRenderThread, translucent, rootRenderNode, contextFactory); in RenderProxy()
48 mDrawFrameTask.setContext(&mRenderThread, mContext, rootRenderNode); in RenderProxy()
60 mRenderThread.queue().runSync([this]() { delete mContext; }); in destroyContext()
66 mRenderThread.queue().post([this, swapBehavior]() { mContext->setSwapBehavior(swapBehavior); }); in setSwapBehavior()
70 return mRenderThread.queue().runSync([this]() -> bool { in loadSystemProperties()
82 mRenderThread.queue().runSync([this, name]() { mContext->setName(std::string(name)); }); in setName()
86 mRenderThread.queue().post( in setSurface()
91 mRenderThread.queue().post([=]() { mContext->allocateBuffers(); }); in allocateBuffers()
[all …]
DCanvasContext.cpp104 : mRenderThread(thread) in CanvasContext()
107 , mAnimationContext(contextFactory->createAnimationContext(mRenderThread.timeLord())) in CanvasContext()
174 mRenderThread.removeFrameCallback(this); in setSurface()
185 return mRenderThread.removeFrameCallback(this); in pauseSurface()
193 mRenderThread.removeFrameCallback(this); in setStopped()
196 mRenderThread.postFrameCallback(this); in setStopped()
259 nsecs_t frameInterval = mRenderThread.timeLord().frameIntervalNanos(); in isSwapChainStuffed()
293 mRenderThread.removeFrameCallback(this); in prepareTree()
333 nsecs_t latestVsync = mRenderThread.timeLord().latestVsync(); in prepareTree()
379 mRenderThread.postFrameCallback(this); in prepareTree()
[all …]
DDrawFrameTask.cpp33 : mRenderThread(nullptr) in DrawFrameTask()
42 mRenderThread = thread; in setContext()
80 mRenderThread->queue().post([this]() { run(); }); in postAndWait()
131 mRenderThread->timeLord().vsyncReceived(vsync); in syncFrameState()
DCanvasContext.h108 GrContext* getGrContext() const { return mRenderThread.getGrContext(); } in getGrContext()
155 RenderState& getRenderState() { return mRenderThread.renderState(); } in getRenderState()
222 RenderThread& mRenderThread; variable
DRenderThread.cpp103 DummyVsyncSource(RenderThread* renderThread) : mRenderThread(renderThread) {} in DummyVsyncSource()
106 mRenderThread->queue().postDelayed(16_ms, in requestNextVsync()
107 [this]() { mRenderThread->drainDisplayEventQueue(); }); in requestNextVsync()
113 RenderThread* mRenderThread; member in android::uirenderer::renderthread::DummyVsyncSource
DDrawFrameTask.h93 RenderThread* mRenderThread; variable
DRenderProxy.h158 RenderThread& mRenderThread;
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DBlockingGLTextureView.java40 private RenderThread mRenderThread; field in BlockingGLTextureView
48 if (mRenderThread != null) { in setRenderer()
51 mRenderThread = new RenderThread(renderer); in setRenderer()
55 mRenderThread.render(); in render()
59 if (mRenderThread != null) { in destroy()
60 mRenderThread.finish(); in destroy()
61 mRenderThread = null; in destroy()
68 mRenderThread.setSurface(surface); in onSurfaceTextureAvailable()
69 mRenderThread.setSize(width, height); in onSurfaceTextureAvailable()
75 mRenderThread.setSize(width, height); in onSurfaceTextureSizeChanged()
[all …]
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaVulkanPipeline.cpp50 mRenderThread.renderState().removeContextCallback(this); in ~SkiaVulkanPipeline()
75 ShaderCache::get().onVkFrameFlushed(mRenderThread.getGrContext()); in draw()
111 mRenderThread.requireVkContext(); in createTextureLayer()
113 return new DeferredLayerUpdater(mRenderThread.renderState()); in createTextureLayer()
127 mRenderThread.requireVkContext(); in setSurface()
130 mRenderThread.getGrContext(), extraBuffers); in setSurface()
DSkiaPipeline.cpp45 SkiaPipeline::SkiaPipeline(RenderThread& thread) : mRenderThread(thread) { in SkiaPipeline()
55 mRenderThread.cacheManager().trimStaleResources(); in onDestroyHardwareResources()
60 if (SkImage_pinAsTexture(image, mRenderThread.getGrContext())) { in pinImages()
71 SkImage_unpinAsTexture(image.get(), mRenderThread.getGrContext()); in unpinImages()
170 SkASSERT(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer()
171 node->setLayerSurface(SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in createOrUpdateLayer()
182 mRenderThread.cacheManager().dumpMemoryUsage(cachesOutput, in createOrUpdateLayer()
183 &mRenderThread.renderState()); in createOrUpdateLayer()
191 << (int)(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer()
214 sp<VectorDrawableAtlas> atlas = mRenderThread.cacheManager().acquireVectorDrawableAtlas(); in renderVectorDrawableCache()
[all …]
DSkiaOpenGLPipeline.cpp52 mRenderThread.renderState().removeContextCallback(this); in ~SkiaOpenGLPipeline()
97 SkASSERT(mRenderThread.getGrContext() != nullptr); in draw()
99 mRenderThread.getGrContext(), backendRT, this->getSurfaceOrigin(), colorType, in draw()
142 mRenderThread.requireGlContext(); in createTextureLayer()
143 return new DeferredLayerUpdater(mRenderThread.renderState()); in createTextureLayer()
182 mRenderThread.requireGlContext(); in setSurface()
DSkiaPipeline.h115 renderthread::RenderThread& mRenderThread; variable
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DGlTextureViewActivity.java34 private ImageFlipRenderThread mRenderThread; field in GlTextureViewActivity
50 mRenderThread = new ImageFlipRenderThread(getResources(), surface); in onSurfaceTextureAvailable()
51 mRenderThread.start(); in onSurfaceTextureAvailable()
76 mRenderThread.finish(); in onSurfaceTextureDestroyed()
78 mRenderThread.join(); in onSurfaceTextureDestroyed()
/frameworks/base/libs/hwui/
DReadback.cpp88 if (!mRenderThread.getGrContext()) { in copyLayerInto()
110 mRenderThread.requireGlContext(); in copyImageInto()
112 mRenderThread.requireVkContext(); in copyImageInto()
119 sk_sp<GrContext> grContext = sk_ref_sp(mRenderThread.getGrContext()); in copyImageInto()
145 Layer layer(mRenderThread.renderState(), nullptr, 255, SkBlendMode::kSrc); in copyImageInto()
168 sk_sp<SkSurface> tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in copyLayerInto()
176 tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), SkBudgeted::kYes, in copyLayerInto()
184 if (!skiapipeline::LayerDrawable::DrawLayer(mRenderThread.getGrContext(), in copyLayerInto()
DReadback.h46 explicit Readback(renderthread::RenderThread& thread) : mRenderThread(thread) {} in Readback()
63 renderthread::RenderThread& mRenderThread; variable
/frameworks/base/libs/hwui/renderstate/
DRenderState.cpp24 RenderState::RenderState(renderthread::RenderThread& thread) : mRenderThread(thread) { in RenderState()
43 mRenderThread.queue().post([object]() { object->decStrong(nullptr); }); in postDecStrong()
DRenderState.h58 renderthread::RenderThread& getRenderThread() const { return mRenderThread; } in getRenderThread()
71 renderthread::RenderThread& mRenderThread; variable
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGLTextureViewActivity.java55 private RenderThread mRenderThread; field in GLTextureViewActivity
92 mRenderThread = new RenderThread(getResources(), surface); in onSurfaceTextureAvailable()
93 mRenderThread.start(); in onSurfaceTextureAvailable()
116 mRenderThread.finish(); in onSurfaceTextureDestroyed()
118 mRenderThread.join(); in onSurfaceTextureDestroyed()
/frameworks/base/core/java/android/view/
DViewDebug.java760 private Thread mRenderThread;
786 if (mRenderThread == null) {
787 mRenderThread = Thread.currentThread();
808 if (Thread.currentThread() == mRenderThread) {