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 GrContext* 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()
323 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
359 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
389 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
399 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
DCanvasContextTests.cpp39 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_TEST()
48 CanvasContext::invokeFunctor(renderThread, &functor); in RENDERTHREAD_TEST()
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 …]
DDeferredLayerUpdaterTests.cpp30 sp<DeferredLayerUpdater> layerUpdater = TestUtils::createTextureLayerUpdater(renderThread); in RENDERTHREAD_TEST()
DSkiaDisplayListTests.cpp146 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
205 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
DRenderNodeTests.cpp273 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_TEST()
309 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); \
79 renderthread::RenderThread& renderThread)
87 static void doTheThing(renderthread::RenderThread& renderThread); \
93 renderthread::RenderThread& renderThread)
158 renderthread::RenderThread& renderThread);
161 renderthread::RenderThread& renderThread, uint32_t width, uint32_t height,
/frameworks/base/libs/hwui/renderthread/
DRenderProxy.cpp331 RenderThread* renderThread = &RenderThread::getInstance(); in prepareToDraw() local
333 auto task = [renderThread, &bitmap]() { in prepareToDraw()
334 CanvasContext::prepareToDraw(*renderThread, &bitmap); in prepareToDraw()
337 nsecs_t lastVsync = renderThread->timeLord().latestVsync(); in prepareToDraw()
338 nsecs_t estimatedNextVsync = lastVsync + renderThread->timeLord().frameIntervalNanos(); in prepareToDraw()
346 renderThread->queue().postAt(estimatedNextVsync + 8_ms, task); in prepareToDraw()
348 renderThread->queue().post(task); in prepareToDraw()
DRenderThread.cpp72 ChoreographerSource(RenderThread* renderThread) : mRenderThread(renderThread) {} in ChoreographerSource() argument
89 DummyVsyncSource(RenderThread* renderThread) : mRenderThread(renderThread) {} in DummyVsyncSource() argument
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaVulkanPipeline.cpp147 sk_sp<Bitmap> SkiaVulkanPipeline::allocateHardwareBitmap(renderthread::RenderThread& renderThread, in allocateHardwareBitmap() argument