diff options
Diffstat (limited to 'src/core/SkBitmap_scroll.cpp')
-rw-r--r-- | src/core/SkBitmap_scroll.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/SkBitmap_scroll.cpp b/src/core/SkBitmap_scroll.cpp index 54110e87cf..de4725b3f9 100644 --- a/src/core/SkBitmap_scroll.cpp +++ b/src/core/SkBitmap_scroll.cpp @@ -11,6 +11,10 @@ bool SkBitmap::scrollRect(const SkIRect* subset, int dx, int dy, SkRegion* inval) const { + if (this->isImmutable()) { + return false; + } + if (NULL != subset) { SkBitmap tmp; @@ -113,5 +117,7 @@ bool SkBitmap::scrollRect(const SkIRect* subset, int dx, int dy, dst += rowBytes; src += rowBytes; } + + this->notifyPixelsChanged(); return true; } |