Index: gm/texdata.cpp |
diff --git a/gm/texdata.cpp b/gm/texdata.cpp |
index a87684e7d352a3181b467b5c2a330584dd5dcca8..72735a160fa816d7485843ce5caee8d983c86af7 100644 |
--- a/gm/texdata.cpp |
+++ b/gm/texdata.cpp |
@@ -14,7 +14,6 @@ |
#include "GrContext.h" |
#include "effects/GrSimpleTextureEffect.h" |
#include "SkColorPriv.h" |
-#include "SkDevice.h" |
namespace skiagm { |
@@ -38,8 +37,7 @@ protected: |
virtual uint32_t onGetFlags() const SK_OVERRIDE { return kGPUOnly_Flag; } |
virtual void onDraw(SkCanvas* canvas) { |
- SkBaseDevice* device = canvas->getTopDevice(); |
- GrRenderTarget* target = device->accessRenderTarget(); |
+ GrRenderTarget* target = canvas->internal_private_accessTopLayerRenderTarget(); |
GrContext* ctx = canvas->getGrContext(); |
if (ctx && target) { |
SkAutoTArray<SkPMColor> gTextureData((2 * S) * (2 * S)); |