diff options
author | 2017-02-06 15:26:09 -0500 | |
---|---|---|
committer | 2017-02-07 15:43:45 +0000 | |
commit | 2b57b7f7a7fc97db57f190b5a8ebcf68e177ee2d (patch) | |
tree | 9b50da8887f7826d7f7f83ecab7f30eaddb7d7cf /src/core/SkColorShader.cpp | |
parent | e970d5965d041a9f67de7f49a0e27b9f1f6554a6 (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/SkColorShader.cpp')
-rw-r--r-- | src/core/SkColorShader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/SkColorShader.cpp b/src/core/SkColorShader.cpp index ed2a26b931..32d9b430c7 100644 --- a/src/core/SkColorShader.cpp +++ b/src/core/SkColorShader.cpp @@ -31,8 +31,8 @@ uint32_t SkColorShader::ColorShaderContext::getFlags() const { return fFlags; } -SkShader::Context* SkColorShader::onCreateContext(const ContextRec& rec, void* storage) const { - return new (storage) ColorShaderContext(*this, rec); +SkShader::Context* SkColorShader::onMakeContext(const ContextRec& rec, SkArenaAlloc* alloc) const { + return alloc->make<ColorShaderContext>(*this, rec); } SkColorShader::ColorShaderContext::ColorShaderContext(const SkColorShader& shader, @@ -149,8 +149,8 @@ uint32_t SkColor4Shader::Color4Context::getFlags() const { return fFlags; } -SkShader::Context* SkColor4Shader::onCreateContext(const ContextRec& rec, void* storage) const { - return new (storage) Color4Context(*this, rec); +SkShader::Context* SkColor4Shader::onMakeContext(const ContextRec& rec, SkArenaAlloc* alloc) const { + return alloc->make<Color4Context>(*this, rec); } SkColor4Shader::Color4Context::Color4Context(const SkColor4Shader& shader, |