From efe6c11b151334b630209e3e5e330be1a0d00e1e Mon Sep 17 00:00:00 2001 From: Florin Malita Date: Thu, 1 Oct 2020 13:10:43 -0400 Subject: [PATCH] [sksg] Fix uninitialized DashEffect attribute All SkSG attributes require a default initializer. TBR= Change-Id: I15ee6ea56f1d07375af5a623e95321bd80da2e68 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/321470 Reviewed-by: Florin Malita Commit-Queue: Florin Malita Commit-Queue: Florin Malita --- modules/sksg/include/SkSGGeometryEffect.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sksg/include/SkSGGeometryEffect.h b/modules/sksg/include/SkSGGeometryEffect.h index 030695b927..838684f572 100644 --- a/modules/sksg/include/SkSGGeometryEffect.h +++ b/modules/sksg/include/SkSGGeometryEffect.h @@ -114,7 +114,7 @@ private: SkPath onRevalidateEffect(const sk_sp&) override; std::vector fIntervals; - float fPhase; + float fPhase = 0; using INHERITED = GeometryEffect; };