commit | 0db057535c6b79a95ea77cda6d8f165600a3e08a | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Fri Jun 28 22:11:14 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jun 28 22:11:14 2019 |
tree | 3f896acbdcf512e5de5a23db4b33f204e58143bf | |
parent | b9cb0a72c354eb237436f527e48b81078a099df4 [diff] |
Remove unnecessary SkPath constructors in Path Change-Id: I61bb9107b6f56f7b15d3a8484b7a71fcdfaad15b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1681911 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#673518}
diff --git a/third_party/blink/renderer/platform/graphics/path.cc b/third_party/blink/renderer/platform/graphics/path.cc index f8c90391..0189bcdf 100644 --- a/third_party/blink/renderer/platform/graphics/path.cc +++ b/third_party/blink/renderer/platform/graphics/path.cc
@@ -42,18 +42,14 @@ Path::Path() : path_() {} -Path::Path(const Path& other) { - path_ = SkPath(other.path_); -} +Path::Path(const Path& other) : path_(other.path_) {} -Path::Path(const SkPath& other) { - path_ = other; -} +Path::Path(const SkPath& other) : path_(other) {} Path::~Path() = default; Path& Path::operator=(const Path& other) { - path_ = SkPath(other.path_); + path_ = other.path_; return *this; }