Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/tests/unit/
DBakedOpDispatcherTests.cpp56 static void testUnmergedGlopDispatch(renderthread::RenderThread& renderThread, RecordedOp* op, in testUnmergedGlopDispatch() argument
69 ValidatingBakedOpRenderer renderer(renderThread.renderState(), glopReceiver); in testUnmergedGlopDispatch()
110 testUnmergedGlopDispatch(renderThread, &arcOp, textureGlopVerifier); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
113 testUnmergedGlopDispatch(renderThread, &ovalOp, textureGlopVerifier); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
121 testUnmergedGlopDispatch(renderThread, &op, [&renderThread] (const Glop& glop) { in RENDERTHREAD_OPENGL_PIPELINE_TEST()
126 static int getGlopTransformFlags(renderthread::RenderThread& renderThread, RecordedOp* op) { in getGlopTransformFlags() argument
128 testUnmergedGlopDispatch(renderThread, op, [&result] (const Glop& glop) { in getGlopTransformFlags()
141 EXPECT_EQ(TransformFlags::None, getGlopTransformFlags(renderThread, &roundRectOp)) in RENDERTHREAD_OPENGL_PIPELINE_TEST()
146 EXPECT_EQ(TransformFlags::None, getGlopTransformFlags(renderThread, &antiAliasedPointsOp)) in RENDERTHREAD_OPENGL_PIPELINE_TEST()
149 EXPECT_EQ(TransformFlags::OffsetByFudgeFactor, getGlopTransformFlags(renderThread, &pointsOp)) in RENDERTHREAD_OPENGL_PIPELINE_TEST()
[all …]
DOffscreenBufferPoolTests.cpp34 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 49u, 149u); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
45 OffscreenBuffer layerAligned(renderThread.renderState(), Caches::getInstance(), 256u, 256u); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
49 OffscreenBuffer layerUnaligned(renderThread.renderState(), Caches::getInstance(), 200u, 225u); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
55 OffscreenBuffer buffer(renderThread.renderState(), Caches::getInstance(), 256u, 256u); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
71 auto layer = pool.get(renderThread.renderState(), 100u, 200u); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
80 auto layer2 = pool.get(renderThread.renderState(), 102u, 202u); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
94 auto layer = pool.get(renderThread.renderState(), 64u, 64u); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
106 auto layer2 = pool.get(renderThread.renderState(), 128u, 128u); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
130 auto hugeLayer = pool.get(renderThread.renderState(), pool.getMaxSize() / 64, 64); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
144 buffers.push_back(pool.get(renderThread.renderState(), size, size)); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
DBakedOpRendererTests.cpp27 BakedOpRenderer renderer(Caches::getInstance(), renderThread.renderState(), true, sLightInfo); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
28 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 200u, 200u); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
DSkiaPipelineTests.cpp50 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
71 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
93 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
137 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
161 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
279 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
309 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
340 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
DCanvasContextTests.cpp39 renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_TEST()
48 CanvasContext::invokeFunctor(renderThread, &functor); in RENDERTHREAD_TEST()
DRenderNodeDrawableTests.cpp320 renderThread, false, parent.get(), &contextFactory)); in RENDERTHREAD_TEST()
435 renderThread, false, parent.get(), &contextFactory)); in RENDERTHREAD_TEST()
524 renderThread, false, parent.get(), &contextFactory)); in RENDERTHREAD_TEST()
537 static int drawNode(RenderThread& renderThread, const sp<RenderNode>& renderNode) in drawNode() argument
541 renderThread, false, renderNode.get(), &contextFactory)); in drawNode()
575 EXPECT_EQ(3, drawNode(renderThread, nodeA)); in RENDERTHREAD_TEST()
600 EXPECT_EQ(4, drawNode(renderThread, nodeA)); in RENDERTHREAD_TEST()
622 EXPECT_EQ(2, drawNode(renderThread, nodeA)); in RENDERTHREAD_TEST()
644 EXPECT_EQ(3, drawNode(renderThread, nodeA)); in RENDERTHREAD_TEST()
667 EXPECT_EQ(2, drawNode(renderThread, nodeA)); in RENDERTHREAD_TEST()
[all …]
DLeakCheckTests.cpp42 RenderState& renderState = renderThread.renderState(); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
59 RenderState& renderState = renderThread.renderState(); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
DMeshStateTests.cpp35renderThread.renderState().meshState().genOrUpdateMeshBuffer(&buffer, 10, nullptr, GL_DYNAMIC_DRAW… in RENDERTHREAD_OPENGL_PIPELINE_TEST()
DTextureCacheTests.cpp34 sk_sp<Bitmap> hwBitmap(Bitmap::allocateHardwareBitmap(renderThread, skBitmap)); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
DDeferredLayerUpdaterTests.cpp29 sp<DeferredLayerUpdater> layerUpdater = TestUtils::createTextureLayerUpdater(renderThread); in RENDERTHREAD_TEST()
DRenderNodeTests.cpp281 renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_TEST()
317 renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_TEST()
DSkiaDisplayListTests.cpp119 renderThread, false, rootNode.get(), &contextFactory)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
DGlopBuilderTests.cpp120 RenderState& renderState = renderThread.renderState(); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
DFrameBuilderTests.cpp699 auto layerUpdater = TestUtils::createTextureLayerUpdater(renderThread, 100, 100, in RENDERTHREAD_OPENGL_PIPELINE_TEST()
731 auto layerUpdater = TestUtils::createTextureLayerUpdater(renderThread, 100, 100, in RENDERTHREAD_OPENGL_PIPELINE_TEST()
752 auto layerUpdater = TestUtils::createTextureLayerUpdater(renderThread, 100, 100, in RENDERTHREAD_OPENGL_PIPELINE_TEST()
1359 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 100, 100); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
1451 OffscreenBuffer childLayer(renderThread.renderState(), Caches::getInstance(), 100, 100); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
1466 OffscreenBuffer parentLayer(renderThread.renderState(), Caches::getInstance(), 200, 200); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
1527 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 100, 100); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
1781 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 200, 200); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
1986 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 100, 100); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
DRecordingCanvasTests.cpp332 auto layerUpdater = TestUtils::createTextureLayerUpdater(renderThread, 100, 100, in RENDERTHREAD_OPENGL_PIPELINE_TEST()
/frameworks/base/libs/hwui/tests/common/
DTestUtils.cpp53 renderthread::RenderThread& renderThread) { in createTextureLayerUpdater() argument
56 pipeline = new renderthread::OpenGLPipeline(renderThread); in createTextureLayerUpdater()
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()
135 renderthread::RenderThread& renderThread = renderthread::RenderThread::getInstance(); in run() local
137 renderThread.vulkanManager().initialize(); in run()
139 renderThread.eglManager().initialize(); in run()
142 rtCallback(renderThread); in run()
[all …]
DTestUtils.h87 static void doTheThing(renderthread::RenderThread& renderThread); \
93 …st_case_name##_##test_name##_RenderThreadTest::doTheThing(renderthread::RenderThread& renderThread)
101 static void doTheThing(renderthread::RenderThread& renderThread); \
104 …st_case_name##_##test_name##_RenderThreadTest::doTheThing(renderthread::RenderThread& renderThread)
112 static void doTheThing(renderthread::RenderThread& renderThread); \
117 …st_case_name##_##test_name##_RenderThreadTest::doTheThing(renderthread::RenderThread& renderThread)
196 renderthread::RenderThread& renderThread);
199 renderthread::RenderThread& renderThread, uint32_t width, uint32_t height,
/frameworks/base/libs/hwui/
DOpenGLReadback.h52 static bool copyLayerInto(renderthread::RenderThread& renderThread, GlLayer& layer,
DOpenGLReadback.cpp270 bool OpenGLReadbackImpl::copyLayerInto(renderthread::RenderThread& renderThread, in copyLayerInto() argument
273 renderThread.renderState(), layer.getTexture(), layer.getTexTransform(), in copyLayerInto()
/frameworks/base/libs/hwui/renderthread/
DRenderProxy.cpp647 RenderThread* renderThread = &RenderThread::getInstance(); in prepareToDraw() local
649 args->thread = renderThread; in prepareToDraw()
652 nsecs_t lastVsync = renderThread->timeLord().latestVsync(); in prepareToDraw()
653 nsecs_t estimatedNextVsync = lastVsync + renderThread->timeLord().frameIntervalNanos(); in prepareToDraw()
661 renderThread->queueAt(task, estimatedNextVsync + 8_ms); in prepareToDraw()
663 renderThread->queue(task); in prepareToDraw()
/frameworks/base/libs/hwui/hwui/
DBitmap.cpp216 sk_sp<Bitmap> Bitmap::allocateHardwareBitmap(uirenderer::renderthread::RenderThread& renderThread, in allocateHardwareBitmap() argument
218 renderThread.eglManager().initialize(); in allocateHardwareBitmap()