Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/tests/unit/
DCacheManagerTests.cpp37 GrContext* grContext = renderThread.getGrContext(); in RENDERTHREAD_SKIA_PIPELINE_TEST()
44 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()
DVectorDrawableAtlasTests.cpp30 atlas.prepareForDraw(renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
40 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
80 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
94 atlas.prepareForDraw(renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
102 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
117 atlas.prepareForDraw(renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
127 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
154 AtlasEntry entry = atlas.requestNewEntry(4, 4, renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
160 atlas.repackIfNeeded(renderThread.getGrContext()); in RENDERTHREAD_SKIA_PIPELINE_TEST()
DSkiaPipelineTests.cpp53 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
74 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
108 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
132 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
177 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
201 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()
354 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
390 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
420 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
DRenderNodeDrawableTests.cpp336 CanvasContext::create(renderThread, false, parent.get(), &contextFactory)); in RENDERTHREAD_TEST()
400 CanvasContext::create(renderThread, false, parent.get(), &contextFactory)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
520 CanvasContext::create(renderThread, false, parent.get(), &contextFactory)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
538 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
620 CanvasContext::create(renderThread, false, parent.get(), &contextFactory)); in RENDERTHREAD_TEST()
633 static int drawNode(RenderThread& renderThread, const sp<RenderNode>& renderNode) { in drawNode() argument
636 CanvasContext::create(renderThread, false, renderNode.get(), &contextFactory)); in drawNode()
670 EXPECT_EQ(3, drawNode(renderThread, nodeA)); in RENDERTHREAD_TEST()
697 EXPECT_EQ(4, drawNode(renderThread, nodeA)); in RENDERTHREAD_TEST()
719 EXPECT_EQ(2, drawNode(renderThread, nodeA)); in RENDERTHREAD_TEST()
[all …]
DCanvasContextTests.cpp39 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_TEST()
48 CanvasContext::invokeFunctor(renderThread, &functor); in RENDERTHREAD_TEST()
DDeferredLayerUpdaterTests.cpp30 sp<DeferredLayerUpdater> layerUpdater = TestUtils::createTextureLayerUpdater(renderThread); in RENDERTHREAD_TEST()
DRenderNodeTests.cpp273 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_TEST()
309 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory)); 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()
/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.h72 static void doTheThing(renderthread::RenderThread& renderThread); \
78 renderthread::RenderThread& renderThread)
86 static void doTheThing(renderthread::RenderThread& renderThread); \
92 renderthread::RenderThread& renderThread)
157 renderthread::RenderThread& renderThread);
160 renderthread::RenderThread& renderThread, uint32_t width, uint32_t height,
/frameworks/base/libs/hwui/renderthread/
DRenderProxy.cpp334 RenderThread* renderThread = &RenderThread::getInstance(); in prepareToDraw() local
336 auto task = [renderThread, &bitmap]() { in prepareToDraw()
337 CanvasContext::prepareToDraw(*renderThread, &bitmap); in prepareToDraw()
340 nsecs_t lastVsync = renderThread->timeLord().latestVsync(); in prepareToDraw()
341 nsecs_t estimatedNextVsync = lastVsync + renderThread->timeLord().frameIntervalNanos(); in prepareToDraw()
349 renderThread->queue().postAt(estimatedNextVsync + 8_ms, task); in prepareToDraw()
351 renderThread->queue().post(task); in prepareToDraw()
DRenderThread.cpp103 DummyVsyncSource(RenderThread* renderThread) : mRenderThread(renderThread) {} in DummyVsyncSource() argument
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaVulkanPipeline.cpp148 sk_sp<Bitmap> SkiaVulkanPipeline::allocateHardwareBitmap(renderthread::RenderThread& renderThread, in allocateHardwareBitmap() argument