projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25507d9
)
Remove race.
author
herb
<herb@google.com>
Wed, 9 Sep 2015 21:48:33 +0000
(14:48 -0700)
committer
Commit bot
<commit-bot@chromium.org>
Wed, 9 Sep 2015 21:48:33 +0000
(14:48 -0700)
BUG=skia:
Review URL: https://codereview.chromium.org/
1327193003
src/core/SkDraw.cpp
patch
|
blob
|
history
diff --git
a/src/core/SkDraw.cpp
b/src/core/SkDraw.cpp
index
f4674b7
..
dbdf6f7
100644
(file)
--- a/
src/core/SkDraw.cpp
+++ b/
src/core/SkDraw.cpp
@@
-1504,12
+1504,9
@@
static void D1G_RgnClip(const SkDraw1Glyph& state, Sk48Dot16 fx, Sk48Dot16 fy, c
if (!clipper.done()) {
const SkIRect& cr = clipper.rect();
- const uint8_t*
aa = (const uint8_t*)glyph.fImage
;
+ const uint8_t*
aa = (uint8_t*)state.fCache->findImage(glyph)
;
if (nullptr == aa) {
- aa = (uint8_t*)state.fCache->findImage(glyph);
- if (nullptr == aa) {
- return;
- }
+ return;
}
mask.fRowBytes = glyph.rowBytes();