diff options
author | reed <reed@google.com> | 2015-08-11 12:23:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-11 12:23:45 -0700 |
commit | 7cdfa8a3f463fb959264df75781f94e3a332b45b (patch) | |
tree | 354d43428a46989692d7cfc70205cf2ba38c9182 /src | |
parent | 4d0d81aec2667cf4dc82971ee42c29c1ec1aeb13 (diff) |
decrement lockcount if we failed to get pixels
BUG=519581
Review URL: https://codereview.chromium.org/1284953002
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkPixelRef.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkPixelRef.cpp b/src/core/SkPixelRef.cpp index 2a46385c24..bb21372f15 100644 --- 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; } |