/frameworks/base/libs/hwui/tests/unit/ |
D | CacheManagerTests.cpp | 38 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()
|
D | SkiaPipelineTests.cpp | 55 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 …]
|
D | CanvasContextTests.cpp | 39 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_TEST() 48 CanvasContext::invokeFunctor(renderThread, &functor); in RENDERTHREAD_TEST()
|
D | RenderNodeDrawableTests.cpp | 337 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 …]
|
D | DeferredLayerUpdaterTests.cpp | 30 sp<DeferredLayerUpdater> layerUpdater = TestUtils::createTextureLayerUpdater(renderThread); in RENDERTHREAD_TEST()
|
D | SkiaDisplayListTests.cpp | 146 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()
|
D | RenderNodeTests.cpp | 273 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/ |
D | TestUtils.cpp | 55 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()
|
D | TestUtils.h | 73 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/ |
D | RenderProxy.cpp | 331 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()
|
D | RenderThread.cpp | 72 ChoreographerSource(RenderThread* renderThread) : mRenderThread(renderThread) {} in ChoreographerSource() argument 89 DummyVsyncSource(RenderThread* renderThread) : mRenderThread(renderThread) {} in DummyVsyncSource() argument
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaVulkanPipeline.cpp | 147 sk_sp<Bitmap> SkiaVulkanPipeline::allocateHardwareBitmap(renderthread::RenderThread& renderThread, in allocateHardwareBitmap() argument
|