Home
last modified time | relevance | path

Searched refs:renderThread (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DCacheManagerTests.cpp38 GrDirectContext* grContext = renderThread.getGrContext(); in RENDERTHREAD_SKIA_PIPELINE_TEST()
45 while (getCacheUsage(grContext) <= renderThread.cacheManager().getBackgroundCacheSize()) { in RENDERTHREAD_SKIA_PIPELINE_TEST()
61 renderThread.cacheManager().trimMemory(CacheManager::TrimMemoryMode::Complete); in RENDERTHREAD_SKIA_PIPELINE_TEST()
75 ASSERT_TRUE(renderThread.cacheManager().getBackgroundCacheSize() < purgeableBytes); in RENDERTHREAD_SKIA_PIPELINE_TEST()
78 renderThread.cacheManager().trimMemory(CacheManager::TrimMemoryMode::UiHidden); in RENDERTHREAD_SKIA_PIPELINE_TEST()
80 ASSERT_TRUE(renderThread.cacheManager().getBackgroundCacheSize() > getCacheUsage(grContext)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
83 renderThread.cacheManager().trimMemory(CacheManager::TrimMemoryMode::Complete); in RENDERTHREAD_SKIA_PIPELINE_TEST()
DSkiaPipelineTests.cpp55 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
77 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
101 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
146 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
170 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
292 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
324 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
361 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
391 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
401 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
DRenderNodeDrawableTests.cpp337 CanvasContext::create(renderThread, false, parent.get(), &contextFactory)); in RENDERTHREAD_TEST()
401 CanvasContext::create(renderThread, false, parent.get(), &contextFactory)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
521 CanvasContext::create(renderThread, false, parent.get(), &contextFactory)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
539 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
621 CanvasContext::create(renderThread, false, parent.get(), &contextFactory)); in RENDERTHREAD_TEST()
634 static int drawNode(RenderThread& renderThread, const sp<RenderNode>& renderNode) { in drawNode() argument
637 CanvasContext::create(renderThread, false, renderNode.get(), &contextFactory)); in drawNode()
671 EXPECT_EQ(3, drawNode(renderThread, nodeA)); in RENDERTHREAD_TEST()
698 EXPECT_EQ(4, drawNode(renderThread, nodeA)); in RENDERTHREAD_TEST()
720 EXPECT_EQ(2, drawNode(renderThread, nodeA)); in RENDERTHREAD_TEST()
[all …]
DCanvasContextTests.cpp39 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_TEST()
DDeferredLayerUpdaterTests.cpp30 sp<DeferredLayerUpdater> layerUpdater = TestUtils::createTextureLayerUpdater(renderThread); in RENDERTHREAD_TEST()
DSkiaDisplayListTests.cpp145 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
204 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
DRenderNodeTests.cpp277 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_TEST()
313 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_TEST()
/frameworks/base/libs/hwui/tests/common/
DTestUtils.cpp55 renderthread::RenderThread& renderThread) { in createTextureLayerUpdater() argument
58 pipeline = new skiapipeline::SkiaOpenGLPipeline(renderThread); in createTextureLayerUpdater()
60 pipeline = new skiapipeline::SkiaVulkanPipeline(renderThread); in createTextureLayerUpdater()
69 renderthread::RenderThread& renderThread, uint32_t width, uint32_t height, in createTextureLayerUpdater() argument
71 sp<DeferredLayerUpdater> layerUpdater = createTextureLayerUpdater(renderThread); in createTextureLayerUpdater()
101 renderthread::RenderThread& renderThread = renderthread::RenderThread::getInstance(); in run() local
103 renderThread.requireVkContext(); in run()
105 renderThread.requireGlContext(); in run()
108 rtCallback(renderThread); in run()
110 renderThread.destroyRenderingContext(); in run()
DTestUtils.h73 static void doTheThing(renderthread::RenderThread& renderThread); \
78 renderthread::RenderThread& renderThread)
86 static void doTheThing(renderthread::RenderThread& renderThread); \
91 renderthread::RenderThread& renderThread)
156 renderthread::RenderThread& renderThread);
159 renderthread::RenderThread& renderThread, uint32_t width, uint32_t height,
/frameworks/base/libs/hwui/renderthread/
DRenderProxy.cpp363 RenderThread* renderThread = &RenderThread::getInstance(); in prepareToDraw() local
365 auto task = [renderThread, &bitmap]() { in prepareToDraw()
366 CanvasContext::prepareToDraw(*renderThread, &bitmap); in prepareToDraw()
369 nsecs_t lastVsync = renderThread->timeLord().latestVsync(); in prepareToDraw()
370 nsecs_t estimatedNextVsync = lastVsync + renderThread->timeLord().frameIntervalNanos(); in prepareToDraw()
378 renderThread->queue().postAt(estimatedNextVsync + 8_ms, task); in prepareToDraw()
380 renderThread->queue().post(task); in prepareToDraw()
DRenderThread.cpp139 ChoreographerSource(RenderThread* renderThread) : mRenderThread(renderThread) {} in ChoreographerSource() argument
156 DummyVsyncSource(RenderThread* renderThread) : mRenderThread(renderThread) {} in DummyVsyncSource() argument
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaVulkanPipeline.cpp154 sk_sp<Bitmap> SkiaVulkanPipeline::allocateHardwareBitmap(renderthread::RenderThread& renderThread, in allocateHardwareBitmap() argument