/frameworks/base/libs/hwui/tests/unit/ |
D | CacheManagerTests.cpp | 37 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()
|
D | VectorDrawableAtlasTests.cpp | 30 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()
|
D | SkiaPipelineTests.cpp | 53 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 …]
|
D | RenderNodeDrawableTests.cpp | 336 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 …]
|
D | CanvasContextTests.cpp | 39 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_TEST() 48 CanvasContext::invokeFunctor(renderThread, &functor); in RENDERTHREAD_TEST()
|
D | DeferredLayerUpdaterTests.cpp | 30 sp<DeferredLayerUpdater> layerUpdater = TestUtils::createTextureLayerUpdater(renderThread); in RENDERTHREAD_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()
|
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()
|
/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 | 72 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/ |
D | RenderProxy.cpp | 335 RenderThread* renderThread = &RenderThread::getInstance(); in prepareToDraw() local 337 auto task = [renderThread, &bitmap]() { in prepareToDraw() 338 CanvasContext::prepareToDraw(*renderThread, &bitmap); in prepareToDraw() 341 nsecs_t lastVsync = renderThread->timeLord().latestVsync(); in prepareToDraw() 342 nsecs_t estimatedNextVsync = lastVsync + renderThread->timeLord().frameIntervalNanos(); in prepareToDraw() 350 renderThread->queue().postAt(estimatedNextVsync + 8_ms, task); in prepareToDraw() 352 renderThread->queue().post(task); in prepareToDraw()
|
D | RenderThread.cpp | 103 DummyVsyncSource(RenderThread* renderThread) : mRenderThread(renderThread) {} in DummyVsyncSource() argument
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaVulkanPipeline.cpp | 148 sk_sp<Bitmap> SkiaVulkanPipeline::allocateHardwareBitmap(renderthread::RenderThread& renderThread, in allocateHardwareBitmap() argument
|