Loading services/surfaceflinger/LayerBE.cpp +8 −1 Original line number Diff line number Diff line Loading @@ -26,10 +26,17 @@ namespace android { LayerBE::LayerBE(Layer* layer, std::string layerName) : mLayer(layer), mMesh(Mesh::TRIANGLE_FAN, 4, 2, 2) { compositionInfo.layer = this; compositionInfo.layer = std::make_shared<LayerBE>(*this); compositionInfo.layerName = layerName; } LayerBE::LayerBE(const LayerBE& layer) : mLayer(layer.mLayer), mMesh(Mesh::TRIANGLE_FAN, 4, 2, 2) { compositionInfo.layer = layer.compositionInfo.layer; compositionInfo.layerName = layer.mLayer->getName().string(); } void LayerBE::onLayerDisplayed(const sp<Fence>& releaseFence) { mLayer->onLayerDisplayed(releaseFence); } Loading services/surfaceflinger/LayerBE.h +2 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ struct CompositionInfo { HWC2::Composition compositionType; sp<GraphicBuffer> mBuffer = nullptr; int mBufferSlot = BufferQueue::INVALID_BUFFER_SLOT; LayerBE* layer = nullptr; std::shared_ptr<LayerBE> layer; struct { std::shared_ptr<HWC2::Layer> hwcLayer; sp<Fence> fence; Loading Loading @@ -83,6 +83,7 @@ public: friend class SurfaceFlinger; LayerBE(Layer* layer, std::string layerName); explicit LayerBE(const LayerBE& layer); void onLayerDisplayed(const sp<Fence>& releaseFence); Mesh& getMesh() { return mMesh; } Loading Loading
services/surfaceflinger/LayerBE.cpp +8 −1 Original line number Diff line number Diff line Loading @@ -26,10 +26,17 @@ namespace android { LayerBE::LayerBE(Layer* layer, std::string layerName) : mLayer(layer), mMesh(Mesh::TRIANGLE_FAN, 4, 2, 2) { compositionInfo.layer = this; compositionInfo.layer = std::make_shared<LayerBE>(*this); compositionInfo.layerName = layerName; } LayerBE::LayerBE(const LayerBE& layer) : mLayer(layer.mLayer), mMesh(Mesh::TRIANGLE_FAN, 4, 2, 2) { compositionInfo.layer = layer.compositionInfo.layer; compositionInfo.layerName = layer.mLayer->getName().string(); } void LayerBE::onLayerDisplayed(const sp<Fence>& releaseFence) { mLayer->onLayerDisplayed(releaseFence); } Loading
services/surfaceflinger/LayerBE.h +2 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ struct CompositionInfo { HWC2::Composition compositionType; sp<GraphicBuffer> mBuffer = nullptr; int mBufferSlot = BufferQueue::INVALID_BUFFER_SLOT; LayerBE* layer = nullptr; std::shared_ptr<LayerBE> layer; struct { std::shared_ptr<HWC2::Layer> hwcLayer; sp<Fence> fence; Loading Loading @@ -83,6 +83,7 @@ public: friend class SurfaceFlinger; LayerBE(Layer* layer, std::string layerName); explicit LayerBE(const LayerBE& layer); void onLayerDisplayed(const sp<Fence>& releaseFence); Mesh& getMesh() { return mMesh; } Loading