diff options
author | Brian Osman <brianosman@google.com> | 2017-03-04 08:12:46 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-04 13:49:47 +0000 |
commit | 32342f032e1dfd133040324f851f0365f9d4cb51 (patch) | |
tree | 56cc2ae886ef068ff0ebb13a22c9357b40cdc6dd /src/gpu/GrSoftwarePathRenderer.h | |
parent | ae9718f1d40556ed5a49e616dbe54087f4d0d546 (diff) |
Rebase and fix chromium
Combine texture provider and resource provider
Largely mechanical. Only three places that were calling createApprox
via texture provider (ie without flags), so that was simple.
BUG=skia:
Change-Id: I876367bcdc6a8db736deedab1028de1972015509
Reviewed-on: https://skia-review.googlesource.com/9176
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.h')
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.h b/src/gpu/GrSoftwarePathRenderer.h index 7dec4be06e..c8d2f8b8d8 100644 --- a/src/gpu/GrSoftwarePathRenderer.h +++ b/src/gpu/GrSoftwarePathRenderer.h @@ -10,7 +10,7 @@ #include "GrPathRenderer.h" -class GrTextureProvider; +class GrResourceProvider; /** * This class uses the software side to render a path to an SkBitmap and @@ -18,8 +18,8 @@ class GrTextureProvider; */ class GrSoftwarePathRenderer : public GrPathRenderer { public: - GrSoftwarePathRenderer(GrTextureProvider* texProvider, bool allowCaching) - : fTexProvider(texProvider) + GrSoftwarePathRenderer(GrResourceProvider* resourceProvider, bool allowCaching) + : fResourceProvider(resourceProvider) , fAllowCaching(allowCaching) {} private: static void DrawNonAARect(GrRenderTargetContext* renderTargetContext, @@ -46,7 +46,7 @@ private: bool onDrawPath(const DrawPathArgs&) override; private: - GrTextureProvider* fTexProvider; + GrResourceProvider* fResourceProvider; bool fAllowCaching; typedef GrPathRenderer INHERITED; |