Instead of the monolothic `depsgraph_type.hh` header that includes most types used in the despgraph, just add includes where they are actually necessary. Also remove the `using` keywords for `std` types. The lack of specificity isn't considered good practice nowadays. Removing unnecessary transitive includes can help improve compile times because the time spent parsing headers decreases. Using the "include what you use" pattern makes futher improvements much easier too, since it the path to further reduce transitive includes becomes much clearer. Pull Request: https://projects.blender.org/blender/blender/pulls/133749
33 lines
747 B
C++
33 lines
747 B
C++
/* SPDX-FileCopyrightText: 2020 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup depsgraph
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "pipeline.h"
|
|
|
|
struct bNodeTree;
|
|
|
|
namespace blender::deg {
|
|
|
|
class CompositorBuilderPipeline : public AbstractBuilderPipeline {
|
|
public:
|
|
CompositorBuilderPipeline(::Depsgraph *graph, bNodeTree *nodetree);
|
|
|
|
protected:
|
|
std::unique_ptr<DepsgraphNodeBuilder> construct_node_builder() override;
|
|
std::unique_ptr<DepsgraphRelationBuilder> construct_relation_builder() override;
|
|
|
|
void build_nodes(DepsgraphNodeBuilder &node_builder) override;
|
|
void build_relations(DepsgraphRelationBuilder &relation_builder) override;
|
|
|
|
private:
|
|
bNodeTree *nodetree_;
|
|
};
|
|
|
|
} // namespace blender::deg
|