Make gms use getTopDevice() rather than getDevice().
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/14885012
git-svn-id: http://skia.googlecode.com/svn/trunk@9091 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/bitmapcopy.cpp b/gm/bitmapcopy.cpp
index 6080918..89ca525 100644
--- a/gm/bitmapcopy.cpp
+++ b/gm/bitmapcopy.cpp
@@ -66,7 +66,7 @@
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])) {