Home
last modified time | relevance | path

Searched refs:renderengine (Results 1 – 25 of 191) sorted by relevance

12345678

/frameworks/native/libs/renderengine/tests/
DRenderEngineThreadedTest.cpp28 using renderengine::PrimeCacheConfig;
38 mThreadedRE = renderengine::threaded::RenderEngineThreaded::create( in SetUp()
39 [this]() { return std::unique_ptr<renderengine::RenderEngine>(mRenderEngine); }); in SetUp()
42 std::unique_ptr<renderengine::threaded::RenderEngineThreaded> mThreadedRE;
43 renderengine::mock::RenderEngine* mRenderEngine = new renderengine::mock::RenderEngine();
125 renderengine::DisplaySettings settings; in TEST_F()
126 std::vector<renderengine::LayerSettings> layers; in TEST_F()
127 std::shared_ptr<renderengine::ExternalTexture> buffer = std::make_shared< in TEST_F()
128 renderengine::impl:: in TEST_F()
130 renderengine::impl::ExternalTexture::Usage::READABLE | in TEST_F()
[all …]
DRenderEngineTest.cpp59 namespace renderengine { namespace
118 virtual renderengine::RenderEngine::GraphicsApi graphicsApi() = 0;
119 virtual renderengine::RenderEngine::SkiaBackend skiaBackend() = 0;
120 bool apiSupported() { return renderengine::RenderEngine::canSupport(graphicsApi()); } in apiSupported()
121 std::unique_ptr<renderengine::RenderEngine> createRenderEngine() { in createRenderEngine()
122 renderengine::RenderEngineCreationArgs reCreationArgs = in createRenderEngine()
123 renderengine::RenderEngineCreationArgs::Builder() in createRenderEngine()
128 .setBlurAlgorithm(renderengine::RenderEngine::BlurAlgorithm::KAWASE) in createRenderEngine()
129 .setContextPriority(renderengine::RenderEngine::ContextPriority::MEDIUM) in createRenderEngine()
130 .setThreaded(renderengine::RenderEngine::Threaded::NO) in createRenderEngine()
[all …]
/frameworks/native/libs/renderengine/skia/
DCache.cpp30 namespace android::renderengine::skia { namespace
64 static void drawShadowLayers(SkiaRenderEngine* renderengine, const DisplaySettings& display, in drawShadowLayers() argument
127 renderengine->drawLayers(display, layers, dstTexture, base::unique_fd()); in drawShadowLayers()
131 static void drawImageLayers(SkiaRenderEngine* renderengine, const DisplaySettings& display, in drawImageLayers() argument
164 renderengine->drawLayers(display, layers, dstTexture, base::unique_fd()); in drawImageLayers()
171 static void drawSolidLayers(SkiaRenderEngine* renderengine, const DisplaySettings& display, in drawSolidLayers() argument
192 renderengine->drawLayers(display, layers, dstTexture, base::unique_fd()); in drawSolidLayers()
197 static void drawBlurLayers(SkiaRenderEngine* renderengine, const DisplaySettings& display, in drawBlurLayers() argument
215 renderengine->drawLayers(display, layers, dstTexture, base::unique_fd()); in drawBlurLayers()
223 static void drawClippedLayers(SkiaRenderEngine* renderengine, const DisplaySettings& display, in drawClippedLayers() argument
[all …]
/frameworks/av/media/libstagefright/renderfright/tests/
DRenderEngineTest.cpp42 sRE = renderengine::gl::GLESRenderEngine::create( in SetUpTestSuite()
43 renderengine::RenderEngineCreationArgs::Builder() in SetUpTestSuite()
50 .setContextPriority(renderengine::RenderEngine::ContextPriority::MEDIUM) in SetUpTestSuite()
51 .setRenderEngineType(renderengine::RenderEngine::RenderEngineType::GLES) in SetUpTestSuite()
191 void expectShadowColor(const renderengine::LayerSettings& castingLayer, in expectShadowColor()
192 const renderengine::ShadowSettings& shadow, const ubyte4& casterColor, in expectShadowColor()
230 static renderengine::ShadowSettings getShadowSettings(const vec2& casterPos, float shadowLength, in getShadowSettings()
232 renderengine::ShadowSettings shadow; in getShadowSettings()
254 void invokeDraw(renderengine::DisplaySettings settings, in invokeDraw()
255 std::vector<const renderengine::LayerSettings*> layers, in invokeDraw()
[all …]
DRenderEngineThreadedTest.cpp34 mThreadedRE = renderengine::threaded::RenderEngineThreaded::create( in SetUp()
35 [this]() { return std::unique_ptr<renderengine::RenderEngine>(mRenderEngine); }); in SetUp()
38 std::unique_ptr<renderengine::threaded::RenderEngineThreaded> mThreadedRE;
39 renderengine::mock::RenderEngine* mRenderEngine = new renderengine::mock::RenderEngine();
97 std::unique_ptr<renderengine::Framebuffer> framebuffer; in TEST_F()
104 std::unique_ptr<renderengine::Framebuffer> framebuffer; in TEST_F()
111 std::unique_ptr<renderengine::Framebuffer> framebuffer; in TEST_F()
182 cleanupPostRender(renderengine::RenderEngine::CleanupMode::CLEAN_ALL)) in TEST_F()
185 mThreadedRE->cleanupPostRender(renderengine::RenderEngine::CleanupMode::CLEAN_ALL); in TEST_F()
191 cleanupPostRender(renderengine::RenderEngine::CleanupMode::CLEAN_ALL)) in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/
DTexturePool.h44 std::shared_ptr<renderengine::ExternalTexture> texture, const sp<Fence>& fence) in AutoTexture()
58 const std::shared_ptr<renderengine::ExternalTexture>& get() const { return mTexture; } in get()
62 std::shared_ptr<renderengine::ExternalTexture> mTexture;
66 TexturePool(renderengine::RenderEngine& renderEngine) in TexturePool()
94 std::shared_ptr<renderengine::ExternalTexture> texture;
101 std::shared_ptr<renderengine::ExternalTexture> genTexture();
103 void returnTexture(std::shared_ptr<renderengine::ExternalTexture>&& texture,
106 renderengine::RenderEngine& mRenderEngine;
DPlanner.h32 namespace renderengine {
47 Planner(renderengine::RenderEngine& renderengine);
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DClientCompositionRequestCache.cpp33 inline bool equalIgnoringSource(const renderengine::LayerSettings& lhs, in equalIgnoringSource()
34 const renderengine::LayerSettings& rhs) { in equalIgnoringSource()
43 inline bool equalIgnoringBuffer(const renderengine::Buffer& lhs, const renderengine::Buffer& rhs) { in equalIgnoringBuffer()
50 inline bool equalIgnoringBuffer(const renderengine::LayerSettings& lhs, in equalIgnoringBuffer()
51 const renderengine::LayerSettings& rhs) { in equalIgnoringBuffer()
70 const renderengine::DisplaySettings& initDisplay, in ClientCompositionRequest()
80 const renderengine::DisplaySettings& newDisplay, in equals()
88 uint64_t bufferId, const renderengine::DisplaySettings& display, in exists()
99 const renderengine::DisplaySettings& display, in add()
/frameworks/av/media/libstagefright/renderfright/include/renderengine/mock/
DRenderEngine.h30 namespace renderengine {
33 class RenderEngine : public renderengine::RenderEngine {
46 MOCK_METHOD2(bindExternalTextureImage, void(uint32_t, const renderengine::Image&));
51 MOCK_METHOD1(bindFrameBuffer, status_t(renderengine::Framebuffer*));
52 MOCK_METHOD1(unbindFrameBuffer, void(renderengine::Framebuffer*));
53 MOCK_METHOD1(drawMesh, void(const renderengine::Mesh&));
/frameworks/av/media/libstagefright/renderfright/threaded/
DRenderEngineThreaded.cpp33 namespace renderengine { namespace
91 mFunctionCalls.push([&resultPromise](renderengine::RenderEngine& instance) { in primeCache()
106 mFunctionCalls.push([&resultPromise, &result](renderengine::RenderEngine& instance) { in dump()
123 mFunctionCalls.push([&resultPromise](renderengine::RenderEngine& /*instance*/) { in useNativeFenceSync()
138 mFunctionCalls.push([&resultPromise](renderengine::RenderEngine& /*instance*/) { in useWaitSync()
153 mFunctionCalls.push([&resultPromise, count, names](renderengine::RenderEngine& instance) { in genTextures()
168 mFunctionCalls.push([&resultPromise, count, &names](renderengine::RenderEngine& instance) { in deleteTextures()
184 [&resultPromise, texName, &image](renderengine::RenderEngine& instance) { in bindExternalTextureImage()
202 [&resultPromise, texName, &buffer, &fence](renderengine::RenderEngine& instance) { in bindExternalTextureBuffer()
217 mFunctionCalls.push([&resultPromise, &buffer](renderengine::RenderEngine& instance) { in cacheExternalTextureBuffer()
[all …]
DRenderEngineThreaded.h28 namespace renderengine {
31 using CreateInstanceFactory = std::function<std::unique_ptr<renderengine::RenderEngine>()>;
86 mutable std::queue<std::function<void(renderengine::RenderEngine& instance)>> mFunctionCalls
93 std::unique_ptr<renderengine::RenderEngine> mRenderEngine;
/frameworks/native/libs/renderengine/include/renderengine/impl/
DExternalTexture.h23 namespace android::renderengine::impl {
27 class ExternalTexture : public android::renderengine::ExternalTexture {
43 android::renderengine::RenderEngine& renderEngine, uint32_t usage);
51 bool hasSameBuffer(const renderengine::ExternalTexture& other) const override { in hasSameBuffer()
58 android::renderengine::RenderEngine& mRenderEngine;
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DClientCompositionRequestCache.h44 bool exists(uint64_t bufferId, const renderengine::DisplaySettings& display,
46 void add(uint64_t bufferId, const renderengine::DisplaySettings& display,
53 renderengine::DisplaySettings display;
55 ClientCompositionRequest(const renderengine::DisplaySettings& _display,
57 bool equals(const renderengine::DisplaySettings& _display,
DRenderSurface.h61 std::shared_ptr<renderengine::ExternalTexture> dequeueBuffer(
72 std::shared_ptr<renderengine::ExternalTexture>& mutableTextureForTest();
82 std::vector<std::shared_ptr<renderengine::ExternalTexture>> mTextureCache;
84 std::shared_ptr<renderengine::ExternalTexture> mTexture;
/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionSurfaceFrameTest.cpp48 mFlinger.setupRenderEngine(std::unique_ptr<renderengine::RenderEngine>(mRenderEngine)); in TransactionSurfaceFrameTest()
66 renderengine::mock::RenderEngine* mRenderEngine = new renderengine::mock::RenderEngine();
94 std::shared_ptr<renderengine::ExternalTexture> externalTexture = std::make_shared< in PresentedSurfaceFrameForBufferTransaction()
95 renderengine::mock::FakeExternalTexture>(1U /*width*/, 1U /*height*/, in PresentedSurfaceFrameForBufferTransaction()
129 std::shared_ptr<renderengine::ExternalTexture> externalTexture1 = std::make_shared< in DroppedSurfaceFrameForBufferTransaction()
130 renderengine::mock::FakeExternalTexture>(1U /*width*/, 1U /*height*/, in DroppedSurfaceFrameForBufferTransaction()
149 std::shared_ptr<renderengine::ExternalTexture> externalTexture2 = std::make_shared< in DroppedSurfaceFrameForBufferTransaction()
150 renderengine::mock::FakeExternalTexture>(1U /*width*/, 1U /*height*/, in DroppedSurfaceFrameForBufferTransaction()
195 std::shared_ptr<renderengine::ExternalTexture> externalTexture = std::make_shared< in BufferlessSurfaceFramePromotedToBufferSurfaceFrame()
196 renderengine::mock::FakeExternalTexture>(1U /*width*/, 1U /*height*/, in BufferlessSurfaceFramePromotedToBufferSurfaceFrame()
[all …]
DTransactionFrameTracerTest.cpp48 mFlinger.setupRenderEngine(std::unique_ptr<renderengine::RenderEngine>(mRenderEngine)); in TransactionFrameTracerTest()
67 renderengine::mock::RenderEngine* mRenderEngine = new renderengine::mock::RenderEngine();
92 std::shared_ptr<renderengine::ExternalTexture> externalTexture = std::make_shared< in BLASTTransactionSendsFrameTracerEvents()
93 renderengine::mock::FakeExternalTexture>(1U /*width*/, 1U /*height*/, bufferId, in BLASTTransactionSendsFrameTracerEvents()
/frameworks/native/services/surfaceflinger/
DClientCache.h55 base::expected<std::shared_ptr<renderengine::ExternalTexture>, AddError> add(
60 std::shared_ptr<renderengine::ExternalTexture> get(const client_cache_t& cacheId);
64 void setRenderEngine(renderengine::RenderEngine* renderEngine) { mRenderEngine = renderEngine; } in setRenderEngine()
84 std::shared_ptr<renderengine::ExternalTexture> buffer;
98 renderengine::RenderEngine* mRenderEngine = nullptr;
/frameworks/native/libs/renderengine/threaded/
DRenderEngineThreaded.cpp33 namespace renderengine { namespace
141 mFunctionCalls.push([resultPromise, config](renderengine::RenderEngine& instance) { in primeCache()
165 mFunctionCalls.push([&resultPromise, &result](renderengine::RenderEngine& instance) { in dump()
184 mFunctionCalls.push([=](renderengine::RenderEngine& instance) { in mapExternalTextureBuffer()
199 [=, buffer = std::move(buffer)](renderengine::RenderEngine& instance) mutable { in unmapExternalTextureBuffer()
231 mFunctionCalls.push([=](renderengine::RenderEngine& instance) { in cleanupPostRender()
263 [resultPromise, display, layers, buffer, fd](renderengine::RenderEngine& instance) { in drawLayers()
279 mFunctionCalls.push([&resultPromise](renderengine::RenderEngine& instance) { in getContextPriority()
299 mFunctionCalls.push([size](renderengine::RenderEngine& instance) { in onActiveDisplaySizeChanged()
312 mFunctionCalls.push([&tidPromise](renderengine::RenderEngine& instance) { in getRenderEngineTid()
[all …]
DRenderEngineThreaded.h28 namespace renderengine {
31 using CreateInstanceFactory = std::function<std::unique_ptr<renderengine::RenderEngine>()>;
93 using Work = std::function<void(renderengine::RenderEngine&)>;
106 std::unique_ptr<renderengine::RenderEngine> mRenderEngine;
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
DTexturePool.cpp56 void TexturePool::returnTexture(std::shared_ptr<renderengine::ExternalTexture>&& texture, in returnTexture()
83 std::shared_ptr<renderengine::ExternalTexture> TexturePool::genTexture() { in genTexture()
86 renderengine::impl:: in genTexture()
97 renderengine::impl::ExternalTexture::Usage::READABLE | in genTexture()
98 renderengine::impl::ExternalTexture::Usage::WRITEABLE); in genTexture()
/frameworks/native/libs/renderengine/
DRenderEngine.cpp38 namespace renderengine { namespace
63 return android::renderengine::skia::GraphiteVkRenderEngine::create(args); in create()
70 return android::renderengine::skia::GaneshVkRenderEngine::create(args); in create()
74 return android::renderengine::skia::SkiaGLRenderEngine::create(args); in create()
80 return renderengine::threaded::RenderEngineThreaded::create(createInstanceFactory); in create()
/frameworks/av/media/libstagefright/renderfright/
DRenderEngine.cpp25 namespace renderengine { namespace
43 return renderengine::threaded::RenderEngineThreaded::create( in create()
44 [args]() { return android::renderengine::gl::GLESRenderEngine::create(args); }); in create()
48 return renderengine::gl::GLESRenderEngine::create(args); in create()
/frameworks/av/media/libstagefright/
DFrameCaptureProcessor.cpp120 mRE = renderengine::RenderEngine::create( in onCreate()
121 renderengine::RenderEngineCreationArgs::Builder() in onCreate()
127 .setContextPriority(renderengine::RenderEngine::ContextPriority::LOW) in onCreate()
138 renderengine::DisplaySettings clientCompositionDisplay; in onCapture()
139 std::vector<const renderengine::LayerSettings*> clientCompositionLayers; in onCapture()
149 renderengine::LayerSettings layerSettings; in onCapture()
174 mRE->cleanupPostRender(renderengine::RenderEngine::CleanupMode::CLEAN_ALL); in onCapture()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DCompositionEngine.h29 namespace renderengine {
58 virtual renderengine::RenderEngine& getRenderEngine() const = 0;
59 virtual void setRenderEngine(renderengine::RenderEngine*) = 0;
/frameworks/native/libs/renderengine/include/renderengine/mock/
DFakeExternalTexture.h22 namespace renderengine {
25 class FakeExternalTexture : public renderengine::ExternalTexture {
40 bool hasSameBuffer(const renderengine::ExternalTexture& other) const override { in hasSameBuffer()

12345678