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>
This commit is contained in:
Brian Osman 2017-11-01 09:26:38 -04:00 committed by Skia Commit-Bot
parent 028b32c9d5
commit 61b43daa85
2 changed files with 4 additions and 1 deletions

View File

@ -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);

View File

@ -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) {