Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 8bd5b5ebd543d0452453db8c2781903e27a5dc6a..edb887c943786ddceea0cc1311ed6177ae97e69d 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -277,6 +277,15 @@ 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. |
+ // ... ugh. |
+ fLegacyBitmap.notifyPixelsChanged(); |
+ return false; |
+} |
+ |
void SkGpuDevice::onAttachToCanvas(SkCanvas* canvas) { |
INHERITED::onAttachToCanvas(canvas); |