Index: gm/texdata.cpp |
diff --git a/gm/texdata.cpp b/gm/texdata.cpp |
index 7d441199a2a1fc9538bebea843f0d9b7f23b906c..410fa6d2542d2f2c1ecb0b6e4b33cf8bb738e2bb 100644 |
--- a/gm/texdata.cpp |
+++ b/gm/texdata.cpp |
@@ -38,7 +38,7 @@ protected: |
} |
virtual void onDraw(SkCanvas* canvas) { |
- SkDevice* device = canvas->getDevice(); |
+ SkDevice* device = canvas->getTopDevice(); |
GrRenderTarget* target = (GrRenderTarget*) device->accessRenderTarget(); |
GrContext* ctx = GetGr(); |
if (ctx && target) { |