Searched refs:renderThread (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/libs/hwui/tests/unit/
H A DCacheManagerTests.cpp36 DisplayInfo displayInfo = renderThread.mainDisplayInfo();
37 GrContext* grContext = renderThread.getGrContext();
44 while (getCacheUsage(grContext) <= renderThread.cacheManager().getBackgroundCacheSize()) {
62 renderThread.cacheManager().trimMemory(CacheManager::TrimMemoryMode::Complete);
76 ASSERT_TRUE(renderThread.cacheManager().getBackgroundCacheSize() < purgeableBytes);
79 renderThread.cacheManager().trimMemory(CacheManager::TrimMemoryMode::UiHidden);
81 ASSERT_TRUE(renderThread.cacheManager().getBackgroundCacheSize() > getCacheUsage(grContext));
84 renderThread.cacheManager().trimMemory(CacheManager::TrimMemoryMode::Complete);
H A DBakedOpRendererTests.cpp28 BakedOpRenderer renderer(Caches::getInstance(), renderThread.renderState(), true, false,
30 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 200u, 200u);
94 renderThread.renderState().blend().setFactors(GL_ONE, GL_ONE);
96 drawFirstOp(renderThread.renderState(), 0xfeff0000, SkBlendMode::kClear);
97 verifyBlend(renderThread.renderState(), GL_ZERO, GL_ONE_MINUS_SRC_ALPHA);
102 renderThread.renderState().blend().setFactors(GL_ONE, GL_ONE);
104 drawFirstOp(renderThread.renderState(), 0xfeff0000, SkBlendMode::kSrcOver);
105 verifyBlendDisabled(renderThread.renderState());
H A DBakedOpDispatcherTests.cpp57 static void testUnmergedGlopDispatch(renderthread::RenderThread& renderThread, RecordedOp* op, argument
71 ValidatingBakedOpRenderer renderer(renderThread.renderState(), glopReceiver);
112 testUnmergedGlopDispatch(renderThread, &arcOp, textureGlopVerifier);
115 testUnmergedGlopDispatch(renderThread, &ovalOp, textureGlopVerifier);
123 testUnmergedGlopDispatch(renderThread, &op,
127 static int getGlopTransformFlags(renderthread::RenderThread& renderThread, RecordedOp* op) { argument
129 testUnmergedGlopDispatch(renderThread, op, [&result](const Glop& glop) {
142 EXPECT_EQ(TransformFlags::None, getGlopTransformFlags(renderThread, &roundRectOp))
147 EXPECT_EQ(TransformFlags::None, getGlopTransformFlags(renderThread, &antiAliasedPointsOp))
150 EXPECT_EQ(TransformFlags::OffsetByFudgeFactor, getGlopTransformFlags(renderThread,
197 validateLayerDraw(renderthread::RenderThread& renderThread, std::function<void(const Glop& glop)> validator) argument
[all...]
H A DOffscreenBufferPoolTests.cpp34 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 49u, 149u);
45 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 49u, 149u, true);
58 OffscreenBuffer layerAligned(renderThread.renderState(), Caches::getInstance(), 256u, 256u);
61 OffscreenBuffer layerUnaligned(renderThread.renderState(), Caches::getInstance(), 200u, 225u);
66 OffscreenBuffer buffer(renderThread.renderState(), Caches::getInstance(), 256u, 256u);
82 auto layer = pool.get(renderThread.renderState(), 100u, 200u);
91 auto layer2 = pool.get(renderThread.renderState(), 102u, 202u);
105 auto layer = pool.get(renderThread.renderState(), 100u, 200u, true);
115 auto layer2 = pool.get(renderThread.renderState(), 102u, 202u, true);
126 auto layer3 = pool.get(renderThread
[all...]
H A DCanvasContextTests.cpp39 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory));
48 CanvasContext::invokeFunctor(renderThread, &functor);
H A DTextureCacheTests.cpp34 sk_sp<Bitmap> hwBitmap(renderThread.allocateHardwareBitmap(skBitmap));
H A DVectorDrawableAtlasTests.cpp30 atlas.prepareForDraw(renderThread.getGrContext());
40 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext());
80 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext());
94 atlas.prepareForDraw(renderThread.getGrContext());
102 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext());
117 atlas.prepareForDraw(renderThread.getGrContext());
127 VDRects[i] = atlas.requestNewEntry(10, 10, renderThread.getGrContext());
154 AtlasEntry entry = atlas.requestNewEntry(4, 4, renderThread.getGrContext());
160 atlas.repackIfNeeded(renderThread.getGrContext());
H A DLeakCheckTests.cpp41 RenderState& renderState = renderThread.renderState();
57 RenderState& renderState = renderThread.renderState();
H A DMeshStateTests.cpp35 renderThread.renderState().meshState().genOrUpdateMeshBuffer(&buffer, 10, nullptr,
H A DDeferredLayerUpdaterTests.cpp29 sp<DeferredLayerUpdater> layerUpdater = TestUtils::createTextureLayerUpdater(renderThread);
H A DSkiaPipelineTests.cpp50 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread);
71 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread);
105 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread);
129 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread);
174 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread);
198 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread);
320 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread);
350 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread);
380 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread);
H A DRenderNodeDrawableTests.cpp335 CanvasContext::create(renderThread, false, parent.get(), &contextFactory));
401 CanvasContext::create(renderThread, false, parent.get(), &contextFactory));
521 CanvasContext::create(renderThread, false, parent.get(), &contextFactory));
539 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread);
621 CanvasContext::create(renderThread, false, parent.get(), &contextFactory));
634 static int drawNode(RenderThread& renderThread, const sp<RenderNode>& renderNode) { argument
637 CanvasContext::create(renderThread, false, renderNode.get(), &contextFactory));
671 EXPECT_EQ(3, drawNode(renderThread, nodeA));
698 EXPECT_EQ(4, drawNode(renderThread, nodeA));
720 EXPECT_EQ(2, drawNode(renderThread, node
[all...]
H A DRenderNodeTests.cpp273 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory));
308 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory));
H A DGlopBuilderTests.cpp120 RenderState& renderState = renderThread.renderState();
H A DSkiaDisplayListTests.cpp119 CanvasContext::create(renderThread, false, rootNode.get(), &contextFactory));
H A DFrameBuilderTests.cpp688 TestUtils::createTextureLayerUpdater(renderThread, 100, 100, SkMatrix::MakeTrans(5, 5));
720 TestUtils::createTextureLayerUpdater(renderThread, 100, 100, SkMatrix::MakeTrans(5, 5));
741 TestUtils::createTextureLayerUpdater(renderThread, 100, 100, SkMatrix::MakeTrans(5, 5));
1342 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 100, 100);
1438 OffscreenBuffer childLayer(renderThread.renderState(), Caches::getInstance(), 100, 100);
1453 OffscreenBuffer parentLayer(renderThread.renderState(), Caches::getInstance(), 200, 200);
1511 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 100, 100);
1775 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 200, 200);
1981 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 100, 100);
/frameworks/base/libs/hwui/tests/common/
H A DTestUtils.cpp54 renderthread::RenderThread& renderThread) {
57 pipeline = new renderthread::OpenGLPipeline(renderThread);
59 pipeline = new skiapipeline::SkiaOpenGLPipeline(renderThread);
61 pipeline = new skiapipeline::SkiaVulkanPipeline(renderThread);
70 renderthread::RenderThread& renderThread, uint32_t width, uint32_t height,
72 sp<DeferredLayerUpdater> layerUpdater = createTextureLayerUpdater(renderThread);
142 renderthread::RenderThread& renderThread = renderthread::RenderThread::getInstance(); local
144 renderThread.vulkanManager().initialize();
146 renderThread.eglManager().initialize();
149 rtCallback(renderThread);
53 createTextureLayerUpdater( renderthread::RenderThread& renderThread) argument
69 createTextureLayerUpdater( renderthread::RenderThread& renderThread, uint32_t width, uint32_t height, const SkMatrix& transform) argument
[all...]
H A DTestUtils.h81 * Like gtest's TEST, but runs on the RenderThread, and 'renderThread' is passed, in top level scope
87 static void doTheThing(renderthread::RenderThread& renderThread); \
94 renderthread::RenderThread& renderThread)
102 static void doTheThing(renderthread::RenderThread& renderThread); \
106 renderthread::RenderThread& renderThread)
114 static void doTheThing(renderthread::RenderThread& renderThread); \
120 renderthread::RenderThread& renderThread)
193 renderthread::RenderThread& renderThread);
196 renderthread::RenderThread& renderThread, uint32_t width, uint32_t height,
/frameworks/base/libs/hwui/
H A DOpenGLReadback.h57 static bool copyLayerInto(renderthread::RenderThread& renderThread, GlLayer& layer,
H A DOpenGLReadback.cpp274 bool OpenGLReadbackImpl::copyLayerInto(renderthread::RenderThread& renderThread, GlLayer& layer, argument
281 return CopyResult::Success == copyTextureInto(Caches::getInstance(), renderThread.renderState(),
/frameworks/base/libs/hwui/renderthread/
H A DRenderProxy.cpp311 RenderThread* renderThread = &RenderThread::getInstance();
313 auto task = [renderThread, &bitmap]() {
314 CanvasContext::prepareToDraw(*renderThread, &bitmap);
317 nsecs_t lastVsync = renderThread->timeLord().latestVsync();
318 nsecs_t estimatedNextVsync = lastVsync + renderThread->timeLord().frameIntervalNanos();
326 renderThread->queue().postAt(estimatedNextVsync + 8_ms, task);
328 renderThread->queue().post(task);
H A DRenderThread.cpp93 DummyVsyncSource(RenderThread* renderThread) : mRenderThread(renderThread) {} argument
H A DOpenGLPipeline.cpp404 sk_sp<Bitmap> OpenGLPipeline::allocateHardwareBitmap(RenderThread& renderThread, argument
406 renderThread.eglManager().initialize();
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaOpenGLPipeline.cpp320 sk_sp<Bitmap> SkiaOpenGLPipeline::allocateHardwareBitmap(renderthread::RenderThread& renderThread, argument
322 renderThread.eglManager().initialize();
324 sk_sp<GrContext> grContext = sk_ref_sp(renderThread.getGrContext());
H A DSkiaVulkanPipeline.cpp160 sk_sp<Bitmap> SkiaVulkanPipeline::allocateHardwareBitmap(renderthread::RenderThread& renderThread, argument

Completed in 201 milliseconds

12