Merge pull request #15080 from alalek:gapi_fix_build

pull/15087/head
Alexander Alekhin 6 years ago
commit 8b341884d2
  1. 5
      modules/gapi/src/backends/fluid/gfluidbackend.cpp
  2. 6
      modules/gapi/src/backends/fluid/gfluidbackend.hpp

@ -1328,7 +1328,7 @@ cv::gimpl::GParallelFluidExecutable::GParallelFluidExecutable(const ade::Graph
const std::vector<GFluidOutputRois> &parallelOutputRois)
{
for (auto&& rois : parallelOutputRois){
tiles.emplace_back(g, graph_data, rois.rois);
tiles.emplace_back(new GFluidExecutable(g, graph_data, rois.rois));
}
}
@ -1343,7 +1343,8 @@ void cv::gimpl::GParallelFluidExecutable::run(std::vector<InObj> &&input_objs,
std::vector<OutObj> &&output_objs)
{
for (auto& tile : tiles ){
tile.run(input_objs, output_objs);
GAPI_Assert((bool)tile);
tile->run(input_objs, output_objs);
}
}

@ -118,6 +118,8 @@ FluidGraphInputData fluidExtractInputDataFromGraph(const ade::Graph &m_g, const
class GFluidExecutable final: public GIslandExecutable
{
GFluidExecutable(const GFluidExecutable&) = delete; // due std::unique_ptr in members list
const ade::Graph &m_g;
GModel::ConstGraph m_gm;
@ -161,7 +163,9 @@ public:
class GParallelFluidExecutable final: public GIslandExecutable {
std::vector<GFluidExecutable> tiles;
GParallelFluidExecutable(const GParallelFluidExecutable&) = delete; // due std::unique_ptr in members list
std::vector<std::unique_ptr<GFluidExecutable>> tiles;
public:
GParallelFluidExecutable(const ade::Graph &g,
const FluidGraphInputData &graph_data,

Loading…
Cancel
Save