From 46563d1d918d9790e95bc363613a233ff8c9de2a Mon Sep 17 00:00:00 2001 From: Chris Dalton Date: Thu, 15 Feb 2018 14:18:36 -0700 Subject: Forward internal_private_accessTopLayerRenderTargetContext from SkPaintFilterCanvas Fixes viewer slides that need direct access to Ganesh. Bug: skia: Change-Id: Icfdd814e53ce333f4a20353e8bc4dddde3cc72df Reviewed-on: https://skia-review.googlesource.com/108020 Reviewed-by: Brian Osman Reviewed-by: Brian Salomon Commit-Queue: Chris Dalton --- include/utils/SkPaintFilterCanvas.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/utils') diff --git a/include/utils/SkPaintFilterCanvas.h b/include/utils/SkPaintFilterCanvas.h index 22a6016a11..d6689b91bc 100644 --- a/include/utils/SkPaintFilterCanvas.h +++ b/include/utils/SkPaintFilterCanvas.h @@ -45,7 +45,10 @@ public: // Forwarded to the wrapped canvas. SkISize getBaseLayerSize() const override { return proxy()->getBaseLayerSize(); } - GrContext* getGrContext() override { return proxy()->getGrContext(); } + GrContext* getGrContext() override { return proxy()->getGrContext(); } + GrRenderTargetContext* internal_private_accessTopLayerRenderTargetContext() override { + return proxy()->internal_private_accessTopLayerRenderTargetContext(); + } protected: /** -- cgit v1.2.3