diff options
author | 2014-06-27 17:47:49 -0700 | |
---|---|---|
committer | 2014-06-27 17:47:49 -0700 | |
commit | 4af35f348b2e2f6c428819118eb7a2f2fff53a74 (patch) | |
tree | 80659a403f7c38a2c947ab993e503bb11c985657 /src/core/SkCanvas.cpp | |
parent | d4fa4835048ae70ae0b881bcdbc766c982ebca13 (diff) |
writepixels needs to bump genID
TBR=
Author: reed@google.com
Review URL: https://codereview.chromium.org/352573005
Diffstat (limited to 'src/core/SkCanvas.cpp')
-rw-r--r-- | src/core/SkCanvas.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index ec98b7e3e6..2fb5c95124 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -753,6 +753,9 @@ bool SkCanvas::writePixels(const SkImageInfo& origInfo, const void* pixels, size // here x,y are either 0 or negative pixels = ((const char*)pixels - y * rowBytes - x * info.bytesPerPixel()); + // Tell our owning surface to bump its generation ID + this->predrawNotify(); + // The device can assert that the requested area is always contained in its bounds return device->writePixels(info, pixels, rowBytes, target.x(), target.y()); } |