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:
4d0d81a
)
decrement lockcount if we failed to get pixels
author
reed
<reed@google.com>
Tue, 11 Aug 2015 19:23:45 +0000
(12:23 -0700)
committer
Commit bot
<commit-bot@chromium.org>
Tue, 11 Aug 2015 19:23:45 +0000
(12:23 -0700)
BUG=519581
Review URL: https://codereview.chromium.org/
1284953002
src/core/SkPixelRef.cpp
patch
|
blob
|
history
diff --git
a/src/core/SkPixelRef.cpp
b/src/core/SkPixelRef.cpp
index 2a46385c2416f545b88d3e2da7a0c25315bcf920..bb21372f15a108accdd55aaadf199ceec3697e98 100644
(file)
--- a/
src/core/SkPixelRef.cpp
+++ b/
src/core/SkPixelRef.cpp
@@
-200,6
+200,8
@@
bool SkPixelRef::lockPixelsInsideMutex() {
validate_pixels_ctable(fInfo, fRec.fColorTable);
return true;
}
+ // no pixels, so we failed (somehow)
+ --fLockCount;
return false;
}