Index: gm/texdata.cpp |
diff --git a/gm/texdata.cpp b/gm/texdata.cpp |
index d2e5d05b485d4b66a2ef283d5498d55469b12793..a87684e7d352a3181b467b5c2a330584dd5dcca8 100644 |
--- a/gm/texdata.cpp |
+++ b/gm/texdata.cpp |
@@ -40,7 +40,7 @@ protected: |
virtual void onDraw(SkCanvas* canvas) { |
SkBaseDevice* device = canvas->getTopDevice(); |
GrRenderTarget* target = device->accessRenderTarget(); |
- GrContext* ctx = GM::GetGr(canvas); |
+ GrContext* ctx = canvas->getGrContext(); |
if (ctx && target) { |
SkAutoTArray<SkPMColor> gTextureData((2 * S) * (2 * S)); |
static const int stride = 2 * S; |