diff options
author | 2017-02-21 10:04:31 -0500 | |
---|---|---|
committer | 2017-02-21 16:34:11 +0000 | |
commit | dbc8eeb592123619d9c5bb4b6c6225b9fd45d03b (patch) | |
tree | 053905e92d6e9ac236a2a2adecb07104e9c0e390 /src/gpu/effects/GrBitmapTextGeoProc.h | |
parent | 9048851e579dffad43f0c77e15030d4fdd5377a8 (diff) |
Remove GrProcessorTestData's GrTextures
(No longer) Blocked on: https://skia-review.googlesource.com/c/8450/ (Remove asTextureRef from SkSpecialImage & update effects accordingly (take 2))
This also (unfortunately) picks up a few straggling effects that didn't have a sk_sp<GrTextureProxy> factory.
Change-Id: I5ce583a084aa8fe00e866eec1db90e2ec9dd2ab0
Reviewed-on: https://skia-review.googlesource.com/8500
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/effects/GrBitmapTextGeoProc.h')
-rw-r--r-- | src/gpu/effects/GrBitmapTextGeoProc.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gpu/effects/GrBitmapTextGeoProc.h b/src/gpu/effects/GrBitmapTextGeoProc.h index f15de47cf4..0f30ddc0a0 100644 --- a/src/gpu/effects/GrBitmapTextGeoProc.h +++ b/src/gpu/effects/GrBitmapTextGeoProc.h @@ -28,6 +28,15 @@ public: new GrBitmapTextGeoProc(color, tex, p, format, localMatrix, usesLocalCoords)); } + static sk_sp<GrGeometryProcessor> Make(GrContext* context, GrColor color, + sk_sp<GrTextureProxy> proxy, const GrSamplerParams& p, + GrMaskFormat format, const SkMatrix& localMatrix, + bool usesLocalCoords) { + return sk_sp<GrGeometryProcessor>( + new GrBitmapTextGeoProc(context, color, std::move(proxy), p, format, + localMatrix, usesLocalCoords)); + } + virtual ~GrBitmapTextGeoProc() {} const char* name() const override { return "Texture"; } @@ -49,6 +58,9 @@ private: GrBitmapTextGeoProc(GrColor, GrTexture* texture, const GrSamplerParams& params, GrMaskFormat format, const SkMatrix& localMatrix, bool usesLocalCoords); + GrBitmapTextGeoProc(GrContext*, GrColor, sk_sp<GrTextureProxy>, const GrSamplerParams& params, + GrMaskFormat format, const SkMatrix& localMatrix, bool usesLocalCoords); + GrColor fColor; SkMatrix fLocalMatrix; bool fUsesLocalCoords; |