diff options
author | 2016-04-21 08:29:06 -0700 | |
---|---|---|
committer | 2016-04-21 08:29:06 -0700 | |
commit | 8d7ffcee75661a50ce298dc1b3bc0b76bea018e7 (patch) | |
tree | 6902c5847a95cce7f454820cb7bf4f7fc80508b8 /src/gpu/text/GrAtlasTextBlob.h | |
parent | 58a8d9214a70e0f6c81c88a8b0b563c06bf0f70e (diff) |
Include scaler context flags (gamma and contrast boost) in the text blob cache key.
Fixes a bug in skiaserve when switching between L32 and S32 modes - we were
reusing blobs created with the other (wrong) masks.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1905683004
Review URL: https://codereview.chromium.org/1905683004
Diffstat (limited to 'src/gpu/text/GrAtlasTextBlob.h')
-rw-r--r-- | src/gpu/text/GrAtlasTextBlob.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/text/GrAtlasTextBlob.h b/src/gpu/text/GrAtlasTextBlob.h index 3fd45990eb..084de620c3 100644 --- a/src/gpu/text/GrAtlasTextBlob.h +++ b/src/gpu/text/GrAtlasTextBlob.h @@ -61,6 +61,7 @@ public: SkPaint::Style fStyle; SkPixelGeometry fPixelGeometry; bool fHasBlur; + uint32_t fScalerContextFlags; bool operator==(const Key& other) const { return 0 == memcmp(this, &other, sizeof(Key)); |