diff options
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-05-31 20:35:27 +0000 |
---|---|---|
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-05-31 20:35:27 +0000 |
commit | 194de0848472d1a47e39c5d207a24a861167dedc (patch) | |
tree | c4a5049cd08f7dbd5fd36864e19279defbfbab5e | |
parent | 86a349caadffac7d164e7ba62db4f821d71b5eaf (diff) |
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
-rw-r--r-- | include/gpu/GrSamplerState.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gpu/GrSamplerState.h b/include/gpu/GrSamplerState.h index 4d2d5f20f5..3cafa457fa 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(); } |