summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/ContainerLayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'services/surfaceflinger/ContainerLayer.cpp')
-rw-r--r--services/surfaceflinger/ContainerLayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/ContainerLayer.cpp b/services/surfaceflinger/ContainerLayer.cpp
index cb50d9ff6d..e58e6f425e 100644
--- a/services/surfaceflinger/ContainerLayer.cpp
+++ b/services/surfaceflinger/ContainerLayer.cpp
@@ -32,7 +32,7 @@ bool ContainerLayer::isVisible() const {
sp<Layer> ContainerLayer::createClone() {
String8 name = mName + " (Mirror)";
- sp<ContainerLayer> layer = new ContainerLayer(
+ sp<ContainerLayer> layer = mFlinger->getFactory().createContainerLayer(
LayerCreationArgs(mFlinger.get(), nullptr, name, 0, 0, 0, LayerMetadata()));
layer->setInitialValuesForClone(this);
return layer;