diff options
author | Brian Osman <brianosman@google.com> | 2017-11-01 09:26:38 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-01 15:16:30 +0000 |
commit | 61b43daa858f3e68c95bf972d510c2d66461b386 (patch) | |
tree | 3dc1e6006c5c5313eae7eaf2706f927938175033 | |
parent | 028b32c9d58ba927fc47cd80176b44c742cbb57d (diff) |
Plumb internal helper to enable more GPU GMs w/SkColorSpaceXformCanvas
API change isn't really public.
TBR:bsalomon@google.com
Bug: skia:
Change-Id: I3a1ae5d7ddb562387e8b8e1248b347704f88037b
Reviewed-on: https://skia-review.googlesource.com/66144
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Brian Osman <brianosman@google.com>
-rw-r--r-- | include/core/SkCanvas.h | 2 | ||||
-rw-r--r-- | src/core/SkColorSpaceXformCanvas.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index 8ae7ac0268..1043d74685 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -2413,7 +2413,7 @@ public: /////////////////////////////////////////////////////////////////////////// // don't call - GrRenderTargetContext* internal_private_accessTopLayerRenderTargetContext(); + virtual GrRenderTargetContext* internal_private_accessTopLayerRenderTargetContext(); // don't call static void Internal_Private_SetIgnoreSaveLayerBounds(bool); diff --git a/src/core/SkColorSpaceXformCanvas.cpp b/src/core/SkColorSpaceXformCanvas.cpp index dc36d36716..c99a77e791 100644 --- a/src/core/SkColorSpaceXformCanvas.cpp +++ b/src/core/SkColorSpaceXformCanvas.cpp @@ -306,6 +306,9 @@ public: GrContext* getGrContext() override { return fTarget->getGrContext(); } bool onGetProps(SkSurfaceProps* props) const override { return fTarget->getProps(props); } void onFlush() override { return fTarget->flush(); } + GrRenderTargetContext* internal_private_accessTopLayerRenderTargetContext() override { + return fTarget->internal_private_accessTopLayerRenderTargetContext(); + } private: sk_sp<SkImage> prepareImage(const SkImage* image) { |