Chromium Code Reviews| Index: src/gpu/SkGpuDevice.cpp |
| diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
| index beed2fab286bcd88a16d62168b7d1b5727a30e7e..b7e5ec9bf56152facd8268c1569e054a73c7361c 100644 |
| --- a/src/gpu/SkGpuDevice.cpp |
| +++ b/src/gpu/SkGpuDevice.cpp |
| @@ -278,6 +278,14 @@ const SkBitmap& SkGpuDevice::onAccessBitmap() { |
| return fLegacyBitmap; |
| } |
| +bool SkGpuDevice::onAccessPixels(SkPixmap* pmap) { |
| + DO_DEFERRED_CLEAR(); |
| + // For compatibility with clients the know we're backed w/ a bitmap, and want to inspect its |
| + // genID. When we can hide/remove that fact, we can eliminate this call to notify. |
|
robertphillips
2015/06/09 18:17:37
erg
reed1
2015/06/09 18:34:10
Done.
|
| + fLegacyBitmap.notifyPixelsChanged(); |
| + return false; |
| +} |
| + |
| void SkGpuDevice::onAttachToCanvas(SkCanvas* canvas) { |
| INHERITED::onAttachToCanvas(canvas); |