Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams committed Sep 7, 2024
1 parent 827523c commit 8630224
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions impeller/geometry/path_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,13 @@ PathBuilder& PathBuilder::AddPath(const Path& path) {
components.insert(components.end(), path.data_->components.begin(),
path.data_->components.end());

size_t source_offset = points.size();
for (auto component : path.data_->components) {
if (component == Path::ComponentType::kContour) {
current_contour_location_ = source_offset;
}
source_offset += Path::VerbToOffset(component);
}
return *this;
}

Expand Down
2 changes: 1 addition & 1 deletion impeller/scene/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

#include <memory>
#include <optional>
#include <vector>
#include <variant>
#include <vector>

#include "impeller/base/thread.h"
#include "impeller/base/thread_safety.h"
Expand Down

0 comments on commit 8630224

Please sign in to comment.