Index: tools/debugger/SkDebugCanvas.cpp |
diff --git a/tools/debugger/SkDebugCanvas.cpp b/tools/debugger/SkDebugCanvas.cpp |
index ae934a16e74267759090f83082df9921371b1bf0..062445ba0a45ff5cecbaaf2cc98789d3bb802ca0 100644 |
--- a/tools/debugger/SkDebugCanvas.cpp |
+++ b/tools/debugger/SkDebugCanvas.cpp |
@@ -345,7 +345,7 @@ void SkDebugCanvas::drawTo(SkCanvas* canvas, int index, int m) { |
// get the render target of the top device so we can ignore batches drawn offscreen |
SkBaseDevice* bd = canvas->getDevice_just_for_deprecated_compatibility_testing(); |
SkGpuDevice* gbd = reinterpret_cast<SkGpuDevice*>(bd); |
- uint32_t rtID = gbd->accessRenderTarget()->getUniqueID(); |
+ uint32_t rtID = gbd->accessDrawContext()->accessRenderTarget()->getUniqueID(); |
// get the bounding boxes to draw |
SkTArray<GrAuditTrail::BatchInfo> childrenBounds; |