aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkNormalMapSource.h
diff options
context:
space:
mode:
authorGravatar Herb Derby <herb@google.com>2017-02-06 15:26:09 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-07 15:43:45 +0000
commit2b57b7f7a7fc97db57f190b5a8ebcf68e177ee2d (patch)
tree9b50da8887f7826d7f7f83ecab7f30eaddb7d7cf /src/core/SkNormalMapSource.h
parente970d5965d041a9f67de7f49a0e27b9f1f6554a6 (diff)
Use SkArenaAlloc instead of SkSmallAllocator in the SkAutoBlitterChoose code.
TBR=reed@google.com Change-Id: Iefb044bf7657fbf982f23aa91a3f4d013ce2c626 Reviewed-on: https://skia-review.googlesource.com/7786 Reviewed-by: Mike Klein <mtklein@chromium.org> Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'src/core/SkNormalMapSource.h')
-rw-r--r--src/core/SkNormalMapSource.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/core/SkNormalMapSource.h b/src/core/SkNormalMapSource.h
index 5908369fc7..f2b07f21e9 100644
--- a/src/core/SkNormalMapSource.h
+++ b/src/core/SkNormalMapSource.h
@@ -21,8 +21,7 @@ public:
#endif
SkNormalSource::Provider* asProvider(const SkShader::ContextRec& rec,
- void* storage) const override;
- size_t providerSize(const SkShader::ContextRec& rec) const override;
+ SkArenaAlloc* alloc) const override;
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkNormalMapSourceImpl)
@@ -34,10 +33,7 @@ protected:
private:
class Provider : public SkNormalSource::Provider {
public:
- Provider(const SkNormalMapSourceImpl& source, SkShader::Context* mapContext,
- SkPaint* overridePaint);
-
- virtual ~Provider() override;
+ Provider(const SkNormalMapSourceImpl& source, SkShader::Context* mapContext);
void fillScanLine(int x, int y, SkPoint3 output[], int count) const override;
@@ -45,8 +41,6 @@ private:
const SkNormalMapSourceImpl& fSource;
SkShader::Context* fMapContext;
- SkPaint* fOverridePaint;
-
typedef SkNormalSource::Provider INHERITED;
};