aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrStyle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrStyle.h')
-rw-r--r--src/gpu/GrStyle.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrStyle.h b/src/gpu/GrStyle.h
index a5599f9b1b..9f7f630a4f 100644
--- a/src/gpu/GrStyle.h
+++ b/src/gpu/GrStyle.h
@@ -81,7 +81,7 @@ public:
this->initPathEffect(std::move(pe));
}
- GrStyle(const GrStyle& that) : fStrokeRec(SkStrokeRec::kFill_InitStyle) { *this = that; }
+ GrStyle(const GrStyle& that) = default;
explicit GrStyle(const SkPaint& paint) : fStrokeRec(paint) {
this->initPathEffect(paint.refPathEffect());
@@ -187,6 +187,7 @@ private:
struct DashInfo {
DashInfo() : fType(SkPathEffect::kNone_DashType) {}
+ DashInfo(const DashInfo& that) { *this = that; }
DashInfo& operator=(const DashInfo& that) {
fType = that.fType;
fPhase = that.fPhase;