Index: tools/android/SkAndroidSDKCanvas.cpp |
diff --git a/tools/android/SkAndroidSDKCanvas.cpp b/tools/android/SkAndroidSDKCanvas.cpp |
index 45fcc758f211a5679c30053c8b436409ad1a9e65..1deb97cbc67cb603574c505e6d57567f5b1d1b6c 100644 |
--- a/tools/android/SkAndroidSDKCanvas.cpp |
+++ b/tools/android/SkAndroidSDKCanvas.cpp |
@@ -292,15 +292,7 @@ SkSurface* SkAndroidSDKCanvas::onNewSurface(const SkImageInfo& info, |
} |
bool SkAndroidSDKCanvas::onPeekPixels(SkPixmap* pmap) { |
- SkASSERT(pmap); |
- SkImageInfo info; |
- size_t rowBytes; |
- const void* addr = fProxyTarget->peekPixels(&info, &rowBytes); |
- if (addr) { |
- pmap->reset(info, addr, rowBytes); |
- return true; |
- } |
- return false; |
+ return fProxyTarget->peekPixels(pmap); |
} |
bool SkAndroidSDKCanvas::onAccessTopLayerPixels(SkPixmap* pmap) { |