diff --git a/experimental/sktext/src/Line.h b/experimental/sktext/src/Line.h index 791ab51589..871f81600a 100644 --- a/experimental/sktext/src/Line.h +++ b/experimental/sktext/src/Line.h @@ -27,6 +27,8 @@ public: TextMetrics(const TextMetrics&) = default; + TextMetrics& operator=(const TextMetrics&) = default; + void merge(TextMetrics tail) { this->fAscent = std::min(this->fAscent, tail.fAscent); this->fDescent = std::max(this->fDescent, tail.fDescent); diff --git a/tools/gpu/GrContextFactory.h b/tools/gpu/GrContextFactory.h index 253dbdc625..d9ab850de0 100644 --- a/tools/gpu/GrContextFactory.h +++ b/tools/gpu/GrContextFactory.h @@ -172,6 +172,7 @@ private: class ContextInfo { public: ContextInfo() = default; + ContextInfo(const ContextInfo&) = default; ContextInfo& operator=(const ContextInfo&) = default; GrContextFactory::ContextType type() const { return fType; }