Index: gm/beziereffects.cpp |
diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp |
index aebf6fbbba478e0673cd5e59e74f76aa267bc846..e80853c4de1b0b8559c798ac37a075c5d07e96e7 100644 |
--- a/gm/beziereffects.cpp |
+++ b/gm/beziereffects.cpp |
@@ -60,8 +60,7 @@ protected: |
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
- SkBaseDevice* device = canvas->getTopDevice(); |
- GrRenderTarget* rt = device->accessRenderTarget(); |
+ GrRenderTarget* rt = canvas->internal_private_accessTopLayerRenderTarget(); |
if (NULL == rt) { |
return; |
} |
@@ -219,8 +218,7 @@ protected: |
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
- SkBaseDevice* device = canvas->getTopDevice(); |
- GrRenderTarget* rt = device->accessRenderTarget(); |
+ GrRenderTarget* rt = canvas->internal_private_accessTopLayerRenderTarget(); |
if (NULL == rt) { |
return; |
} |
@@ -411,8 +409,7 @@ protected: |
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
- SkBaseDevice* device = canvas->getTopDevice(); |
- GrRenderTarget* rt = device->accessRenderTarget(); |
+ GrRenderTarget* rt = canvas->internal_private_accessTopLayerRenderTarget(); |
if (NULL == rt) { |
return; |
} |