diff options
author | Robert Phillips <robertphillips@google.com> | 2018-01-08 13:40:32 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-08 19:05:31 +0000 |
commit | 1afd4cdb0800e2e395b465da24eb71e0e834dafa (patch) | |
tree | d3353e7e4487a86d00002ab882f34ec24347000b /src/gpu/GrSoftwarePathRenderer.h | |
parent | 5ec5d677b02c41a3c58609461cd8b62c2feaeddc (diff) |
Add GrProxyProvider
This pulls all the proxy tracking & creation functionality out of the GrResourceCache and GrResourceProvider and consolidates it in the GrProxyProvider.
Change-Id: I7256f7c544319a70c1bd93dd5a9ccbe5fa0a544f
Reviewed-on: https://skia-review.googlesource.com/91501
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.h')
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.h b/src/gpu/GrSoftwarePathRenderer.h index d36b2f6486..b399a188b7 100644 --- a/src/gpu/GrSoftwarePathRenderer.h +++ b/src/gpu/GrSoftwarePathRenderer.h @@ -10,7 +10,7 @@ #include "GrPathRenderer.h" -class GrResourceProvider; +class GrProxyProvider; /** * This class uses the software side to render a path to an SkBitmap and @@ -18,9 +18,11 @@ class GrResourceProvider; */ class GrSoftwarePathRenderer : public GrPathRenderer { public: - GrSoftwarePathRenderer(GrResourceProvider* resourceProvider, bool allowCaching) - : fResourceProvider(resourceProvider) - , fAllowCaching(allowCaching) {} + GrSoftwarePathRenderer(GrProxyProvider* proxyProvider, bool allowCaching) + : fProxyProvider(proxyProvider) + , fAllowCaching(allowCaching) { + } + private: static void DrawNonAARect(GrRenderTargetContext* renderTargetContext, GrPaint&& paint, @@ -58,7 +60,7 @@ private: bool onDrawPath(const DrawPathArgs&) override; private: - GrResourceProvider* fResourceProvider; + GrProxyProvider* fProxyProvider; bool fAllowCaching; typedef GrPathRenderer INHERITED; |