PlatformCALayerRemote::PlatformCALayerRemote(const PlatformCALayerRemote& other, PlatformCALayerClient* owner, RemoteLayerTreeContext& context) : PlatformCALayer(other.layerType(), owner) , m_superlayer(nullptr) , m_maskLayer(nullptr) , m_acceleratesDrawing(other.acceleratesDrawing()) , m_context(&context) { }
PassRefPtr<PlatformCALayerRemote> PlatformCALayerRemote::create(const PlatformCALayerRemote& other, WebCore::PlatformCALayerClient* owner, RemoteLayerTreeContext& context) { RefPtr<PlatformCALayerRemote> layer = adoptRef(new PlatformCALayerRemote(other, owner, context)); context.layerWasCreated(*layer, other.layerType()); return layer.release(); }