aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkShader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkShader.cpp')
-rw-r--r--src/core/SkShader.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/core/SkShader.cpp b/src/core/SkShader.cpp
index 93d3bc91a6..75f527bff3 100644
--- a/src/core/SkShader.cpp
+++ b/src/core/SkShader.cpp
@@ -86,10 +86,6 @@ bool SkShader::asLuminanceColor(SkColor* colorPtr) const {
}
SkShader::Context* SkShader::createContext(const ContextRec& rec, void* storage) const {
- // Currently we require each context to be allocated on 16byte boundary as some of our
- // subclasses need that. Hence we check the ptr here.
-// SkASSERT(SkIsAlign16((intptr_t)storage));
-
if (!this->computeTotalInverse(rec, nullptr)) {
return nullptr;
}
@@ -101,13 +97,7 @@ SkShader::Context* SkShader::onCreateContext(const ContextRec& rec, void*) const
}
size_t SkShader::contextSize(const ContextRec& rec) const {
- size_t size = this->onContextSize(rec);
-
- // Currently we require each context to be allocated on 16byte boundary as some of our
- // subclasses need that. Hence we check the size here.
-// SkASSERT(SkIsAlign16(size));
-
- return size;
+ return this->onContextSize(rec);
}
size_t SkShader::onContextSize(const ContextRec&) const {