aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-03-14 09:17:43 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-14 14:09:12 +0000
commitd3749485db2de966a80e39669a49192fc7c0bd9d (patch)
tree2a86aa3d24a394dd569f25f94eae08cd58674efe /include
parent4a01ac9e410e7b78fb04c8632e0676082b9408aa (diff)
Consolidate Proxy caching code in GrResourceProvider
This doesn't implement the GrSurfaceProxy-based caching but just carves out a space for it. Split out of: https://skia-review.googlesource.com/c/8823/ (Remove GrFragmentProcessor-derived class' GrTexture-based ctors) Change-Id: Iec87b45e3264b349d7804f63e361e970b925e335 Reviewed-on: https://skia-review.googlesource.com/9626 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkMaskFilter.h2
-rw-r--r--include/private/GrSurfaceProxy.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/include/core/SkMaskFilter.h b/include/core/SkMaskFilter.h
index 957050a51d..5cd5535904 100644
--- a/include/core/SkMaskFilter.h
+++ b/include/core/SkMaskFilter.h
@@ -115,7 +115,7 @@ public:
* Try to directly render the mask filter into the target. Returns true if drawing was
* successful. If false is returned then paint is unmodified.
*/
- virtual bool directFilterMaskGPU(GrResourceProvider* resourceProvider,
+ virtual bool directFilterMaskGPU(GrContext*,
GrRenderTargetContext* renderTargetContext,
GrPaint&& paint,
const GrClip&,
diff --git a/include/private/GrSurfaceProxy.h b/include/private/GrSurfaceProxy.h
index 5ed395beb6..2c7f022140 100644
--- a/include/private/GrSurfaceProxy.h
+++ b/include/private/GrSurfaceProxy.h
@@ -180,9 +180,7 @@ public:
const GrSurfaceDesc&, SkBudgeted,
const void* srcData, size_t rowBytes);
- static sk_sp<GrSurfaceProxy> MakeWrappedBackend(
- GrContext*,
- GrBackendTextureDesc&);
+ static sk_sp<GrSurfaceProxy> MakeWrappedBackend(GrContext*, GrBackendTextureDesc&);
const GrSurfaceDesc& desc() const { return fDesc; }