/frameworks/base/libs/hwui/renderthread/ |
D | RenderProxy.cpp | 44 : mRenderThread(RenderThread::getInstance()), mContext(nullptr) { in RenderProxy() 51 mContext = mRenderThread.queue().runSync([=, this]() -> CanvasContext* { in RenderProxy() 52 CanvasContext* context = CanvasContext::create(mRenderThread, translucent, rootRenderNode, in RenderProxy() 55 mRenderThread.queue().post([=] { context->startHintSession(); }); in RenderProxy() 59 mDrawFrameTask.setContext(&mRenderThread, mContext, rootRenderNode); in RenderProxy() 71 mRenderThread.queue().runSync([this]() { delete mContext; }); in destroyContext() 77 mRenderThread.queue().post([this, swapBehavior]() { mContext->setSwapBehavior(swapBehavior); }); in setSwapBehavior() 81 return mRenderThread.queue().runSync([this]() -> bool { in loadSystemProperties() 93 mRenderThread.queue().runSync([this, name]() { mContext->setName(std::string(name)); }); in setName() 101 mRenderThread.queue().post([this, hardwareBuffer = buffer]() mutable { in setHardwareBuffer() [all …]
|
D | CanvasContext.cpp | 125 : mRenderThread(thread) in CanvasContext() 128 , mAnimationContext(contextFactory->createAnimationContext(mRenderThread.timeLord())) in CanvasContext() 134 mRenderThread.cacheManager().registerCanvasContext(this); in CanvasContext() 135 mRenderThread.renderState().registerContextCallback(this); in CanvasContext() 147 mRenderThread.cacheManager().unregisterCanvasContext(this); in ~CanvasContext() 148 mRenderThread.renderState().removeContextCallback(this); in ~CanvasContext() 172 mRenderThread.cacheManager().onContextStopped(this); in destroy() 173 mHintSessionWrapper->delayedDestroy(mRenderThread, 2_s, mHintSessionWrapper); in destroy() 226 auto funcs = mRenderThread.getASurfaceControlFunctions(); in setSurfaceControl() 267 mRenderThread.removeFrameCallback(this); in setupPipelineSurface() [all …]
|
D | RenderThread.cpp | 167 ChoreographerSource(RenderThread* renderThread) : mRenderThread(renderThread) {} in ChoreographerSource() 170 AChoreographer_postVsyncCallback(mRenderThread->mChoreographer, in requestNextVsync() 171 RenderThread::extendedFrameCallback, mRenderThread); in requestNextVsync() 175 AChoreographer_handlePendingEvents(mRenderThread->mChoreographer, mRenderThread); in drainPendingEvents() 179 RenderThread* mRenderThread; member in android::uirenderer::renderthread::ChoreographerSource 184 DummyVsyncSource(RenderThread* renderThread) : mRenderThread(renderThread) {} in DummyVsyncSource() 187 mRenderThread->queue().postDelayed(16_ms, [this]() { in requestNextVsync() 188 mRenderThread->frameCallback(UiFrameInfoBuilder::INVALID_VSYNC_ID, in requestNextVsync() 195 mRenderThread->frameCallback(UiFrameInfoBuilder::INVALID_VSYNC_ID, in drainPendingEvents() 201 RenderThread* mRenderThread; member in android::uirenderer::renderthread::DummyVsyncSource
|
D | DrawFrameTask.cpp | 37 : mRenderThread(nullptr) in DrawFrameTask() 46 mRenderThread = thread; in setContext() 85 mRenderThread->queue().post([this]() { run(); }); in postAndWait() 147 if (GrDirectContext* grContext = mRenderThread->getGrContext()) { in run() 176 mRenderThread->timeLord().vsyncReceived(vsync, intendedVsync, vsyncId, frameDeadline, in syncFrameState()
|
D | CacheManager.cpp | 45 : mRenderThread(thread), mMemoryPolicy(loadMemoryPolicy()) { in CacheManager() 130 mRenderThread.destroyRenderingContext(); in trimMemory() 297 mRenderThread.queue().postDelayed(mMemoryPolicy.contextTimeout, in scheduleDestroyContext() 303 mRenderThread.destroyRenderingContext(); in scheduleDestroyContext()
|
D | CacheManager.h | 83 RenderThread& mRenderThread; variable
|
D | DrawFrameTask.h | 113 RenderThread* mRenderThread; variable
|
D | CanvasContext.h | 122 GrDirectContext* getGrContext() const { return mRenderThread.getGrContext(); } in getGrContext() 282 RenderThread& mRenderThread; variable
|
D | RenderProxy.h | 161 RenderThread& mRenderThread;
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaGpuPipeline.cpp | 85 SkASSERT(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer() 86 node->setLayerSurface(SkSurfaces::RenderTarget(mRenderThread.getGrContext(), in createOrUpdateLayer() 97 mRenderThread.cacheManager().dumpMemoryUsage(cachesOutput, in createOrUpdateLayer() 98 &mRenderThread.renderState()); in createOrUpdateLayer() 106 << (int)(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer() 116 if (!mRenderThread.getGrContext()) { in pinImages() 121 if (skgpu::ganesh::PinAsTexture(mRenderThread.getGrContext(), image)) { in pinImages() 132 skgpu::ganesh::UnpinTexture(mRenderThread.getGrContext(), image.get()); in unpinImages() 159 mRenderThread.getGrContext(), mHardwareBuffer, kTopLeft_GrSurfaceOrigin, in getBufferSkSurface() 169 mRenderThread.getGrContext()->getResourceCacheUsage(&resources, &bytes); in dumpResourceCacheUsage() [all …]
|
D | SkiaVulkanPipeline.cpp | 51 mRenderThread.renderState().removeContextCallback(this); in ~SkiaVulkanPipeline() 55 return mRenderThread.vulkanManager(); in vulkanManager() 62 mRenderThread.requireVkContext(); in makeCurrent() 151 mRenderThread.requireVkContext(); in createTextureLayer() 153 return new DeferredLayerUpdater(mRenderThread.renderState()); in createTextureLayer() 160 vulkanManager().createReleaseFence(&fence, mRenderThread.getGrContext()); in flush() 175 mRenderThread.requireVkContext(); in setSurface() 178 mSurfaceColorType, mRenderThread.getGrContext(), 0); in setSurface()
|
D | SkiaOpenGLPipeline.cpp | 55 mRenderThread.renderState().removeContextCallback(this); in ~SkiaOpenGLPipeline() 64 mRenderThread.requireGlContext(); in makeCurrent() 150 SkASSERT(mRenderThread.getGrContext() != nullptr); in draw() 157 surface = SkSurfaces::WrapBackendRenderTarget(mRenderThread.getGrContext(), backendRT, in draw() 217 mRenderThread.requireGlContext(); in createTextureLayer() 218 return new DeferredLayerUpdater(mRenderThread.renderState()); in createTextureLayer() 244 mRenderThread.requireGlContext(); in setSurface()
|
D | SkiaCpuPipeline.cpp | 73 mRenderThread.cacheManager().dumpMemoryUsage(cachesOutput, in createOrUpdateLayer() 74 &mRenderThread.renderState()); in createOrUpdateLayer() 82 << (int)(mRenderThread.getGrContext() != nullptr); in createOrUpdateLayer()
|
D | SkiaPipeline.h | 70 renderthread::RenderThread& mRenderThread;
|
D | SkiaPipeline.cpp | 61 SkiaPipeline::SkiaPipeline(RenderThread& thread) : mRenderThread(thread) { in SkiaPipeline() 69 mRenderThread.cacheManager().trimStaleResources(); in onDestroyHardwareResources() 338 procs.fImageCtx = mRenderThread.getGrContext(); in endCapture()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | BlockingGLTextureView.java | 40 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/tests/UiBench/src/com/android/test/uibench/ |
D | GlTextureViewActivity.java | 34 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/ |
D | Readback.cpp | 120 sk_sp<GrDirectContext> grContext = mRenderThread.requireGrContext(); in copySurfaceInto() 177 SkSurfaces::RenderTarget(mRenderThread.getGrContext(), skgpu::Budgeted::kYes, in copySurfaceInto() 184 tmpSurface = SkSurfaces::RenderTarget(mRenderThread.getGrContext(), in copySurfaceInto() 282 if (!mRenderThread.getGrContext()) { in copyLayerInto() 312 mRenderThread.requireGlContext(); in copyImageInto() 314 mRenderThread.requireVkContext(); in copyImageInto() 318 sk_sp<GrDirectContext> grContext = sk_ref_sp(mRenderThread.getGrContext()); in copyImageInto() 333 Layer layer(mRenderThread.renderState(), nullptr, 255, SkBlendMode::kSrc); in copyImageInto() 352 sk_sp<SkSurface> tmpSurface = SkSurfaces::RenderTarget(mRenderThread.getGrContext(), in copyLayerInto() 362 tmpSurface = SkSurfaces::RenderTarget(mRenderThread.getGrContext(), in copyLayerInto() [all …]
|
D | Readback.h | 41 explicit Readback(renderthread::RenderThread& thread) : mRenderThread(thread) {} in Readback() 58 renderthread::RenderThread& mRenderThread; variable
|
/frameworks/av/services/camera/virtualcamera/ |
D | VirtualCameraSession.cc | 323 if (mRenderThread != nullptr) { in close() 324 mRenderThread->stop(); in close() 325 mRenderThread = nullptr; in close() 384 if (mRenderThread != nullptr) { in configureStreams() 393 resolutionFromSurface(mRenderThread->getInputSurface()); in configureStreams() 415 mRenderThread->flush(); in configureStreams() 416 mRenderThread->stop(); in configureStreams() 419 mRenderThread = std::make_unique<VirtualCameraRenderThread>( in configureStreams() 422 mRenderThread->start(); in configureStreams() 423 inputSurface = mRenderThread->getInputSurface(); in configureStreams() [all …]
|
/frameworks/base/libs/hwui/renderstate/ |
D | RenderState.cpp | 23 RenderState::RenderState(renderthread::RenderThread& thread) : mRenderThread(thread) { in RenderState() 37 mRenderThread.queue().post([object]() { object->decStrong(nullptr); }); in postDecStrong()
|
D | RenderState.h | 60 renderthread::RenderThread& getRenderThread() const { return mRenderThread; } in getRenderThread() 72 renderthread::RenderThread& mRenderThread; variable
|
/frameworks/av/services/camera/virtualcamera/tests/ |
D | VirtualCameraRenderThreadTest.cc | 106 mRenderThread = std::make_unique<VirtualCameraRenderThread>( in SetUp() 113 std::unique_ptr<VirtualCameraRenderThread> mRenderThread; member in android::companion::virtualcamera::__anon5377fd310111::VirtualCameraRenderThreadTest 142 mRenderThread->enqueueTask(std::make_unique<ProcessCaptureRequestTask>( in TEST_F() 148 mRenderThread->flush(); in TEST_F()
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | GLTextureViewActivity.java | 55 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/libs/hwui/platform/host/renderthread/ |
D | CacheManager.cpp | 24 : mRenderThread(thread), mMemoryPolicy(loadMemoryPolicy()) {} in CacheManager()
|