Index: gm/gm.cpp |
diff --git a/gm/gm.cpp b/gm/gm.cpp |
index 9da1a17159a65146a7749357549f871f2c530175..29d02d150a73e4ff88fb914b03f433de735f3331 100644 |
--- a/gm/gm.cpp |
+++ b/gm/gm.cpp |
@@ -63,18 +63,5 @@ void GM::drawSizeBounds(SkCanvas* canvas, SkColor color) { |
canvas->drawRect(r, paint); |
} |
-#if SK_SUPPORT_GPU |
-// canvas could almost be a const&, but accessRenderTarget isn't const. |
-/*static*/ GrContext* GM::GetGr(SkCanvas* canvas) { |
- SkASSERT(NULL != canvas); |
- SkBaseDevice* device = canvas->getTopDevice(); |
- GrRenderTarget* renderTarget = device->accessRenderTarget(); |
- if (NULL != renderTarget) { |
- return renderTarget->getContext(); |
- } |
- return NULL; |
-} |
-#endif |
- |
// need to explicitly declare this, or we get some weird infinite loop llist |
template GMRegistry* SkTRegistry<GM*(*)(void*)>::gHead; |