aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-31 20:35:27 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-31 20:35:27 +0000
commit194de0848472d1a47e39c5d207a24a861167dedc (patch)
treec4a5049cd08f7dbd5fd36864e19279defbfbab5e
parent86a349caadffac7d164e7ba62db4f821d71b5eaf (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.h1
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();
}