Index: samplecode/SampleLayers.cpp |
diff --git a/samplecode/SampleLayers.cpp b/samplecode/SampleLayers.cpp |
index 483943d5d4c5b690092fa8601c4df465917c957c..bc8b8730bb682db18bbc9da93cf9906080492f6a 100644 |
--- a/samplecode/SampleLayers.cpp |
+++ b/samplecode/SampleLayers.cpp |
@@ -42,10 +42,10 @@ static void dump_layers(const char label[], SkCanvas* canvas) { |
SkCanvas::LayerIter iter(canvas, true); |
int index = 0; |
while (!iter.done()) { |
- const SkBitmap& bm = iter.device()->accessBitmap(false); |
+ SkImageInfo info = iter.device()->imageInfo(); |
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++, |
- bm.width(), bm.height(), iter.x(), iter.y(), |
+ info.width(), info.height(), iter.x(), iter.y(), |
clip.fLeft, clip.fTop, clip.fRight, clip.fBottom, |
iter.paint().getAlpha()); |
iter.next(); |