Index: samplecode/SampleLayers.cpp |
diff --git a/samplecode/SampleLayers.cpp b/samplecode/SampleLayers.cpp |
index bc8b8730bb682db18bbc9da93cf9906080492f6a..483943d5d4c5b690092fa8601c4df465917c957c 100644 |
--- a/samplecode/SampleLayers.cpp |
+++ b/samplecode/SampleLayers.cpp |
@@ -42,10 +42,10 @@ |
SkCanvas::LayerIter iter(canvas, true); |
int index = 0; |
while (!iter.done()) { |
- SkImageInfo info = iter.device()->imageInfo(); |
+ const SkBitmap& bm = iter.device()->accessBitmap(false); |
const SkIRect& clip = iter.clip().getBounds(); |
SkDebugf("Layer[%d] bitmap [%d %d] X=%d Y=%d clip=[%d %d %d %d] alpha=%d\n", index++, |
- info.width(), info.height(), iter.x(), iter.y(), |
+ bm.width(), bm.height(), iter.x(), iter.y(), |
clip.fLeft, clip.fTop, clip.fRight, clip.fBottom, |
iter.paint().getAlpha()); |
iter.next(); |