aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-03-27 10:17:38 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-27 14:52:51 +0000
commit73a850fe5db820b548d61741191d5ed966d3914b (patch)
tree0ee336334ea4b4c450aa5f2559e43a5046354e6e /src/gpu
parentcf3ee928549076849c3c6591acc99e094991cc67 (diff)
Fully initialize array of previous edges in GrGLConvexPolyEffect to please MSAN
BUG=skia:6416 Change-Id: I99c29cd8cb90844e50ed288ba57e28774bf2444c Reviewed-on: https://skia-review.googlesource.com/10183 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/effects/GrConvexPolyEffect.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/effects/GrConvexPolyEffect.cpp b/src/gpu/effects/GrConvexPolyEffect.cpp
index d07d591c69..d94d94a29a 100644
--- a/src/gpu/effects/GrConvexPolyEffect.cpp
+++ b/src/gpu/effects/GrConvexPolyEffect.cpp
@@ -166,7 +166,9 @@ GrGLSLFragmentProcessor* AARectEffect::onCreateGLSLInstance() const {
class GrGLConvexPolyEffect : public GrGLSLFragmentProcessor {
public:
GrGLConvexPolyEffect() {
- fPrevEdges[0] = SK_ScalarNaN;
+ for (size_t i = 0; i < SK_ARRAY_COUNT(fPrevEdges); ++i) {
+ fPrevEdges[i] = SK_ScalarNaN;
+ }
}
void emitCode(EmitArgs&) override;