/frameworks/base/libs/hwui/tests/unit/ |
D | BakedOpDispatcherTests.cpp | 55 static void testUnmergedGlopDispatch(renderthread::RenderThread& renderThread, RecordedOp* op, in testUnmergedGlopDispatch() argument 68 ValidatingBakedOpRenderer renderer(renderThread.renderState(), glopReceiver); in testUnmergedGlopDispatch() 111 testUnmergedGlopDispatch(renderThread, &arcOp, textureGlopVerifier); in RENDERTHREAD_TEST() 114 testUnmergedGlopDispatch(renderThread, &ovalOp, textureGlopVerifier); in RENDERTHREAD_TEST() 122 testUnmergedGlopDispatch(renderThread, &op, [&renderThread] (const Glop& glop) { in RENDERTHREAD_TEST() 127 static int getGlopTransformFlags(renderthread::RenderThread& renderThread, RecordedOp* op) { in getGlopTransformFlags() argument 129 testUnmergedGlopDispatch(renderThread, op, [&result] (const Glop& glop) { in getGlopTransformFlags() 142 EXPECT_EQ(TransformFlags::None, getGlopTransformFlags(renderThread, &roundRectOp)) in RENDERTHREAD_TEST() 147 EXPECT_EQ(TransformFlags::None, getGlopTransformFlags(renderThread, &antiAliasedPointsOp)) in RENDERTHREAD_TEST() 150 EXPECT_EQ(TransformFlags::OffsetByFudgeFactor, getGlopTransformFlags(renderThread, &pointsOp)) in RENDERTHREAD_TEST() [all …]
|
D | OffscreenBufferPoolTests.cpp | 34 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 49u, 149u); in RENDERTHREAD_TEST() 45 OffscreenBuffer layerAligned(renderThread.renderState(), Caches::getInstance(), 256u, 256u); in RENDERTHREAD_TEST() 49 OffscreenBuffer layerUnaligned(renderThread.renderState(), Caches::getInstance(), 200u, 225u); in RENDERTHREAD_TEST() 55 OffscreenBuffer buffer(renderThread.renderState(), Caches::getInstance(), 256u, 256u); in RENDERTHREAD_TEST() 71 auto layer = pool.get(renderThread.renderState(), 100u, 200u); in RENDERTHREAD_TEST() 80 auto layer2 = pool.get(renderThread.renderState(), 102u, 202u); in RENDERTHREAD_TEST() 94 auto layer = pool.get(renderThread.renderState(), 64u, 64u); in RENDERTHREAD_TEST() 106 auto layer2 = pool.get(renderThread.renderState(), 128u, 128u); in RENDERTHREAD_TEST() 130 auto hugeLayer = pool.get(renderThread.renderState(), pool.getMaxSize() / 64, 64); in RENDERTHREAD_TEST() 144 buffers.push_back(pool.get(renderThread.renderState(), size, size)); in RENDERTHREAD_TEST()
|
D | BakedOpRendererTests.cpp | 27 BakedOpRenderer renderer(Caches::getInstance(), renderThread.renderState(), true, sLightInfo); in RENDERTHREAD_TEST() 28 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 200u, 200u); in RENDERTHREAD_TEST()
|
D | LeakCheckTests.cpp | 42 RenderState& renderState = renderThread.renderState(); in RENDERTHREAD_TEST() 59 RenderState& renderState = renderThread.renderState(); in RENDERTHREAD_TEST()
|
D | RenderNodeTests.cpp | 108 CanvasContext canvasContext(renderThread, false, nullptr, &contextFactory); in RENDERTHREAD_TEST()
|
D | FrameBuilderTests.cpp | 616 auto layerUpdater = TestUtils::createTextureLayerUpdater(renderThread, 100, 100, in RENDERTHREAD_TEST() 648 auto layerUpdater = TestUtils::createTextureLayerUpdater(renderThread, 100, 100, in RENDERTHREAD_TEST() 669 auto layerUpdater = TestUtils::createTextureLayerUpdater(renderThread, 100, 100, in RENDERTHREAD_TEST() 1273 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 100, 100); in RENDERTHREAD_TEST() 1365 OffscreenBuffer childLayer(renderThread.renderState(), Caches::getInstance(), 100, 100); in RENDERTHREAD_TEST() 1380 OffscreenBuffer parentLayer(renderThread.renderState(), Caches::getInstance(), 200, 200); in RENDERTHREAD_TEST() 1441 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 100, 100); in RENDERTHREAD_TEST() 1668 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 200, 200); in RENDERTHREAD_TEST() 1873 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 100, 100); in RENDERTHREAD_TEST()
|
D | GlopBuilderTests.cpp | 119 RenderState& renderState = renderThread.renderState(); in RENDERTHREAD_TEST()
|
D | RecordingCanvasTests.cpp | 316 auto layerUpdater = TestUtils::createTextureLayerUpdater(renderThread, 100, 100, in RENDERTHREAD_TEST()
|
/frameworks/base/libs/hwui/ |
D | Readback.cpp | 33 CopyResult Readback::copySurfaceInto(renderthread::RenderThread& renderThread, in copySurfaceInto() argument 37 renderThread.eglManager().initialize(); in copySurfaceInto() 40 RenderState& renderState = renderThread.renderState(); in copySurfaceInto()
|
D | Readback.h | 39 static CopyResult copySurfaceInto(renderthread::RenderThread& renderThread,
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestUtils.h | 70 static void doTheThing(renderthread::RenderThread& renderThread); \ 75 …st_case_name##_##test_name##_RenderThreadTest::doTheThing(renderthread::RenderThread& renderThread) 146 renderthread::RenderThread& renderThread, uint32_t width, uint32_t height,
|
D | TestUtils.cpp | 44 renderthread::RenderThread& renderThread, uint32_t width, uint32_t height, in createTextureLayerUpdater() argument 46 Layer* layer = LayerRenderer::createTextureLayer(renderThread.renderState()); in createTextureLayerUpdater()
|
/frameworks/base/libs/hwui/renderthread/ |
D | RenderProxy.cpp | 659 RenderThread* renderThread = &RenderThread::getInstance(); in prepareToDraw() local 661 args->thread = renderThread; in prepareToDraw() 663 nsecs_t lastVsync = renderThread->timeLord().latestVsync(); in prepareToDraw() 664 nsecs_t estimatedNextVsync = lastVsync + renderThread->timeLord().frameIntervalNanos(); in prepareToDraw() 672 renderThread->queueAt(task, estimatedNextVsync + 8_ms); in prepareToDraw() 674 renderThread->queue(task); in prepareToDraw()
|