Loading libs/renderengine/skia/SkiaGLRenderEngine.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -564,10 +564,10 @@ sk_sp<SkShader> SkiaGLRenderEngine::createRuntimeEffectShader( // which gets similar results for most surfaces // Determine later on if we need to leverage the stertch shader within // surface flinger if (stretchEffect.hasEffect() && /* DISABLES CODE */ (false)) { if (stretchEffect.hasEffect()) { const auto targetBuffer = layer->source.buffer.buffer; const auto graphicsBuffer = targetBuffer ? targetBuffer->getBuffer() : nullptr; if (graphicsBuffer && shader) { const auto graphicBuffer = targetBuffer ? targetBuffer->getBuffer() : nullptr; if (graphicBuffer && shader) { shader = mStretchShaderFactory.createSkShader(shader, stretchEffect); } } Loading libs/renderengine/skia/SkiaGLRenderEngine.h +5 −4 Original line number Diff line number Diff line Loading @@ -120,14 +120,15 @@ private: // Identifier used or various mappings of layers to various // textures or shaders using LayerId = uint64_t; using GraphicBufferId = uint64_t; // Number of external holders of ExternalTexture references, per GraphicBuffer ID. std::unordered_map<LayerId, int32_t> mGraphicBufferExternalRefs GUARDED_BY(mRenderingMutex); std::unordered_map<GraphicBufferId, int32_t> mGraphicBufferExternalRefs GUARDED_BY(mRenderingMutex); // Cache of GL textures that we'll store per GraphicBuffer ID, sliced by GPU context. std::unordered_map<LayerId, std::shared_ptr<AutoBackendTexture::LocalRef>> mTextureCache std::unordered_map<GraphicBufferId, std::shared_ptr<AutoBackendTexture::LocalRef>> mTextureCache GUARDED_BY(mRenderingMutex); std::unordered_map<LayerId, std::shared_ptr<AutoBackendTexture::LocalRef>> std::unordered_map<GraphicBufferId, std::shared_ptr<AutoBackendTexture::LocalRef>> mProtectedTextureCache GUARDED_BY(mRenderingMutex); std::unordered_map<LinearEffect, sk_sp<SkRuntimeEffect>, LinearEffectHasher> mRuntimeEffects; Loading Loading
libs/renderengine/skia/SkiaGLRenderEngine.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -564,10 +564,10 @@ sk_sp<SkShader> SkiaGLRenderEngine::createRuntimeEffectShader( // which gets similar results for most surfaces // Determine later on if we need to leverage the stertch shader within // surface flinger if (stretchEffect.hasEffect() && /* DISABLES CODE */ (false)) { if (stretchEffect.hasEffect()) { const auto targetBuffer = layer->source.buffer.buffer; const auto graphicsBuffer = targetBuffer ? targetBuffer->getBuffer() : nullptr; if (graphicsBuffer && shader) { const auto graphicBuffer = targetBuffer ? targetBuffer->getBuffer() : nullptr; if (graphicBuffer && shader) { shader = mStretchShaderFactory.createSkShader(shader, stretchEffect); } } Loading
libs/renderengine/skia/SkiaGLRenderEngine.h +5 −4 Original line number Diff line number Diff line Loading @@ -120,14 +120,15 @@ private: // Identifier used or various mappings of layers to various // textures or shaders using LayerId = uint64_t; using GraphicBufferId = uint64_t; // Number of external holders of ExternalTexture references, per GraphicBuffer ID. std::unordered_map<LayerId, int32_t> mGraphicBufferExternalRefs GUARDED_BY(mRenderingMutex); std::unordered_map<GraphicBufferId, int32_t> mGraphicBufferExternalRefs GUARDED_BY(mRenderingMutex); // Cache of GL textures that we'll store per GraphicBuffer ID, sliced by GPU context. std::unordered_map<LayerId, std::shared_ptr<AutoBackendTexture::LocalRef>> mTextureCache std::unordered_map<GraphicBufferId, std::shared_ptr<AutoBackendTexture::LocalRef>> mTextureCache GUARDED_BY(mRenderingMutex); std::unordered_map<LayerId, std::shared_ptr<AutoBackendTexture::LocalRef>> std::unordered_map<GraphicBufferId, std::shared_ptr<AutoBackendTexture::LocalRef>> mProtectedTextureCache GUARDED_BY(mRenderingMutex); std::unordered_map<LinearEffect, sk_sp<SkRuntimeEffect>, LinearEffectHasher> mRuntimeEffects; Loading