Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: src/gpu/SkGpuDevice.cpp

Issue 1168303006: Revert[2] SkDraw and all Blitters to use pixmap instead of bitmapi (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add dox to new test Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/SkGpuDevice.h ('k') | src/utils/SkTextureCompressor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/gpu/SkGpuDevice.h ('k') | src/utils/SkTextureCompressor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698