From 194de0848472d1a47e39c5d207a24a861167dedc Mon Sep 17 00:00:00 2001 From: "tomhudson@google.com" Date: Thu, 31 May 2012 20:35:27 +0000 Subject: [PATCH] Zero out GrSamplerState in constructor to recover performance loss on Linux from r4102. (Noise in padding bytes was breaking operator==()) Visual review by bsalomon@. git-svn-id: http://skia.googlecode.com/svn/trunk@4108 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/gpu/GrSamplerState.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/gpu/GrSamplerState.h b/include/gpu/GrSamplerState.h index 4d2d5f20f..3cafa457f 100644 --- a/include/gpu/GrSamplerState.h +++ b/include/gpu/GrSamplerState.h @@ -90,6 +90,7 @@ public: , fRadial2Radius0() , fRadial2PosRoot() , fCustomStage (NULL) { + memset(this, 0, sizeof(GrSamplerState)); this->reset(); }