commit | 2a0e9f36c6e823d2c0472ef23b4c5a247427807f | [log] [tgz] |
---|---|---|
author | joshualitt <joshualitt@chromium.org> | Mon Apr 13 06:12:21 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon Apr 13 06:12:21 2015 -0700 |
tree | 1ded8c714f93efa63c8430a7655403dd32dd6b99 | |
parent | 64b309c35bfddb8382c3e38f1d8ff7efe4098cab [diff] [blame] |
Avoid regenerating cached textblobs on integer scrolls BUG=skia: Review URL: https://codereview.chromium.org/1062863002
diff --git a/src/gpu/GrTextBlobCache.cpp b/src/gpu/GrTextBlobCache.cpp index 9141b17..a5ef07c 100644 --- a/src/gpu/GrTextBlobCache.cpp +++ b/src/gpu/GrTextBlobCache.cpp
@@ -41,5 +41,10 @@ } cacheBlob->fRunCount = runCount; cacheBlob->fPool = &fPool; + +#ifdef SK_DEBUG + cacheBlob->fTotalXError = 0; + cacheBlob->fTotalYError = 0; +#endif return cacheBlob; }