Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/renderthread/
DRenderProxy.cpp40 : mRenderThread(RenderThread::getInstance()), mContext(nullptr) { in RenderProxy()
41 mContext = mRenderThread.queue().runSync([&]() -> CanvasContext* { in RenderProxy()
42 return CanvasContext::create(mRenderThread, translucent, rootRenderNode, contextFactory); in RenderProxy()
44 mDrawFrameTask.setContext(&mRenderThread, mContext, rootRenderNode, in RenderProxy()
57 mRenderThread.queue().runSync([this]() { delete mContext; }); in destroyContext()
63 mRenderThread.queue().post([this, swapBehavior]() { mContext->setSwapBehavior(swapBehavior); }); in setSwapBehavior()
67 return mRenderThread.queue().runSync([this]() -> bool { in loadSystemProperties()
79 mRenderThread.queue().runSync([this, name]() { mContext->setName(std::string(name)); }); in setName()
84 mRenderThread.queue().post([this, win = window, enableTimeout]() mutable { in setSurface()
91 auto funcs = mRenderThread.getASurfaceControlFunctions(); in setSurfaceControl()
[all …]
DCanvasContext.cpp116 : mRenderThread(thread) in CanvasContext()
119 , mAnimationContext(contextFactory->createAnimationContext(mRenderThread.timeLord())) in CanvasContext()
192 auto funcs = mRenderThread.getASurfaceControlFunctions(); in setSurfaceControl()
231 mRenderThread.removeFrameCallback(this); in setupPipelineSurface()
242 return mRenderThread.removeFrameCallback(this); in pauseSurface()
250 mRenderThread.removeFrameCallback(this); in setStopped()
253 mRenderThread.postFrameCallback(this); in setStopped()
317 nsecs_t frameInterval = mRenderThread.timeLord().frameIntervalNanos(); in isSwapChainStuffed()
351 mRenderThread.removeFrameCallback(this); in prepareTree()
392 nsecs_t latestVsync = mRenderThread.timeLord().latestVsync(); in prepareTree()
[all …]
DRenderThread.cpp139 ChoreographerSource(RenderThread* renderThread) : mRenderThread(renderThread) {} in ChoreographerSource()
142 AChoreographer_postFrameCallback64(mRenderThread->mChoreographer, in requestNextVsync()
143 RenderThread::frameCallback, mRenderThread); in requestNextVsync()
147 AChoreographer_handlePendingEvents(mRenderThread->mChoreographer, mRenderThread); in drainPendingEvents()
151 RenderThread* mRenderThread; member in android::uirenderer::renderthread::ChoreographerSource
156 DummyVsyncSource(RenderThread* renderThread) : mRenderThread(renderThread) {} in DummyVsyncSource()
159 mRenderThread->queue().postDelayed(16_ms, [this]() { in requestNextVsync()
160 RenderThread::frameCallback(systemTime(SYSTEM_TIME_MONOTONIC), mRenderThread); in requestNextVsync()
165 RenderThread::frameCallback(systemTime(SYSTEM_TIME_MONOTONIC), mRenderThread); in drainPendingEvents()
169 RenderThread* mRenderThread; member in android::uirenderer::renderthread::DummyVsyncSource
DDrawFrameTask.cpp88 : mRenderThread(nullptr) in DrawFrameTask()
97 mRenderThread = thread; in setContext()
137 mRenderThread->queue().post([this]() { run(); }); in postAndWait()
185 if (GrDirectContext* grContext = mRenderThread->getGrContext()) { in run()
225 mRenderThread->timeLord().vsyncReceived(vsync, intendedVsync, vsyncId, frameDeadline, in syncFrameState()
DCanvasContext.h110 GrDirectContext* getGrContext() const { return mRenderThread.getGrContext(); } in getGrContext()
255 RenderThread& mRenderThread; variable
DDrawFrameTask.h108 RenderThread* mRenderThread; variable
DRenderProxy.h145 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.cpp51 mRenderThread.renderState().removeContextCallback(this); in ~SkiaVulkanPipeline()
55 return mRenderThread.vulkanManager(); in vulkanManager()
119 mRenderThread.requireVkContext(); in createTextureLayer()
121 return new DeferredLayerUpdater(mRenderThread.renderState()); in createTextureLayer()
133 mRenderThread.requireVkContext(); in setSurface()
136 mSurfaceColorType, mRenderThread.getGrContext(), 0); in setSurface()
DSkiaOpenGLPipeline.cpp53 mRenderThread.renderState().removeContextCallback(this); in ~SkiaOpenGLPipeline()
102 SkASSERT(mRenderThread.getGrContext() != nullptr); in draw()
104 mRenderThread.getGrContext(), backendRT, this->getSurfaceOrigin(), colorType, in draw()
151 mRenderThread.requireGlContext(); in createTextureLayer()
152 return new DeferredLayerUpdater(mRenderThread.renderState()); in createTextureLayer()
175 mRenderThread.requireGlContext(); in setSurface()
DSkiaPipeline.cpp48 SkiaPipeline::SkiaPipeline(RenderThread& thread) : mRenderThread(thread) { in SkiaPipeline()
58 mRenderThread.cacheManager().trimStaleResources(); in onDestroyHardwareResources()
62 if (!mRenderThread.getGrContext()) { in pinImages()
67 if (SkImage_pinAsTexture(image, mRenderThread.getGrContext())) { in pinImages()
78 SkImage_unpinAsTexture(image.get(), mRenderThread.getGrContext()); in unpinImages()
178 SkASSERT(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer()
179 node->setLayerSurface(SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in createOrUpdateLayer()
190 mRenderThread.cacheManager().dumpMemoryUsage(cachesOutput, in createOrUpdateLayer()
191 &mRenderThread.renderState()); in createOrUpdateLayer()
199 << (int)(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer()
[all …]
DSkiaPipeline.h77 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.cpp89 sk_sp<GrDirectContext> grContext = mRenderThread.requireGrContext(); in copySurfaceInto()
119 SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), SkBudgeted::kYes, in copySurfaceInto()
126 tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), SkBudgeted::kYes, in copySurfaceInto()
262 if (!mRenderThread.getGrContext()) { in copyLayerInto()
292 mRenderThread.requireGlContext(); in copyImageInto()
294 mRenderThread.requireVkContext(); in copyImageInto()
301 sk_sp<GrDirectContext> grContext = sk_ref_sp(mRenderThread.getGrContext()); in copyImageInto()
321 Layer layer(mRenderThread.renderState(), nullptr, 255, SkBlendMode::kSrc); in copyImageInto()
341 sk_sp<SkSurface> tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), in copyLayerInto()
349 tmpSurface = SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), SkBudgeted::kYes, in copyLayerInto()
[all …]
DReadback.h46 explicit Readback(renderthread::RenderThread& thread) : mRenderThread(thread) {} in Readback()
65 renderthread::RenderThread& mRenderThread; variable
/frameworks/base/libs/hwui/renderstate/
DRenderState.cpp23 RenderState::RenderState(renderthread::RenderThread& thread) : mRenderThread(thread) { in RenderState()
37 mRenderThread.queue().post([object]() { object->decStrong(nullptr); }); in postDecStrong()
DRenderState.h58 renderthread::RenderThread& getRenderThread() const { return mRenderThread; } in getRenderThread()
70 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.java839 private Thread mRenderThread;
865 if (mRenderThread == null) {
866 mRenderThread = Thread.currentThread();
887 if (Thread.currentThread() == mRenderThread) {
958 private Thread mRenderThread;
984 if (mRenderThread == null) {
985 mRenderThread = Thread.currentThread();
1006 if (Thread.currentThread() == mRenderThread) {