// Copyright 2013 The Flutter Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.#include "root_inspect_node.h"namespacedart_utils{std::unique_ptr<sys::ComponentInspector>RootInspectNode::inspector_;std::mutexRootInspectNode::mutex_;voidRootInspectNode::Initialize(sys::ComponentContext*context){std::lock_guard<std::mutex>lock(mutex_);if(!inspector_){inspector_=std::make_unique<sys::ComponentInspector>(context);}}inspect::NodeRootInspectNode::CreateRootChild(conststd::string&name){std::lock_guard<std::mutex>lock(mutex_);returninspector_->inspector()->GetRoot().CreateChild(name);}}// namespace dart_utils