diff options
author | 2015-09-04 10:38:58 -0700 | |
---|---|---|
committer | 2015-09-04 10:38:58 -0700 | |
commit | 6f2a486040cb25465990196c229feb47e668e87f (patch) | |
tree | fc63ba7119fad3229790ce920f5580fd75b7b7c8 /src/core/SkDraw.cpp | |
parent | 714a710c428c3166b729b7756199927ab85eb69e (diff) |
Parallel cache.
TBR=reed@google.com
BUG=skia:1330
Review URL: https://codereview.chromium.org/1264103003
Diffstat (limited to 'src/core/SkDraw.cpp')
-rw-r--r-- | src/core/SkDraw.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp index 8e1a132b4d..f4674b7798 100644 --- a/src/core/SkDraw.cpp +++ b/src/core/SkDraw.cpp @@ -1476,14 +1476,12 @@ static void D1G_RectClip(const SkDraw1Glyph& state, Sk48Dot16 fx, Sk48Dot16 fy, bounds = &storage; } - uint8_t* aa = (uint8_t*)glyph.fImage; + uint8_t*aa = (uint8_t*)state.fCache->findImage(glyph); if (nullptr == aa) { - aa = (uint8_t*)state.fCache->findImage(glyph); - if (nullptr == aa) { - return; // can't rasterize glyph - } + return; // can't rasterize glyph } + mask.fRowBytes = glyph.rowBytes(); mask.fFormat = static_cast<SkMask::Format>(glyph.fMaskFormat); mask.fImage = aa; |