Index: gm/bitmapcopy.cpp |
diff --git a/gm/bitmapcopy.cpp b/gm/bitmapcopy.cpp |
index 6080918928c70e0cba9a97b44a47b430efa1913f..89ca5254488ebada77bb32963fafbdffbbd0d047 100644 |
--- a/gm/bitmapcopy.cpp |
+++ b/gm/bitmapcopy.cpp |
@@ -66,7 +66,7 @@ protected: |
SkScalar vertMargin(SkIntToScalar(10)); |
draw_checks(canvas, 40, 40); |
- SkBitmap src = canvas->getDevice()->accessBitmap(false); |
+ SkBitmap src = canvas->getTopDevice()->accessBitmap(false); |
for (unsigned i = 0; i < NUM_CONFIGS; ++i) { |
if (!src.deepCopyTo(&fDst[i], gConfigs[i])) { |