Index: gm/rrects.cpp |
diff --git a/gm/rrects.cpp b/gm/rrects.cpp |
index a79ff5462f67d71fe817c864c7eb2d1bae333a6a..6c63af9b30992f086fa8af0a652b28c8c95cb3e3 100644 |
--- a/gm/rrects.cpp |
+++ b/gm/rrects.cpp |
@@ -66,12 +66,8 @@ protected: |
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
#if SK_SUPPORT_GPU |
- SkBaseDevice* device = canvas->getTopDevice(); |
- GrContext* context = NULL; |
- GrRenderTarget* rt = device->accessRenderTarget(); |
- if (NULL != rt) { |
- context = rt->getContext(); |
- } |
+ GrRenderTarget* rt = canvas->internal_private_accessTopLayerRenderTarget(); |
+ GrContext* context = rt ? rt->getContext() : NULL; |
if (kEffect_Type == fType && NULL == context) { |
return; |
} |