Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: src/core/SkShader.cpp

Issue 1768433003: remove align16 calls in skhader context sizes. will handle this elsewhere as needed (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkPictureShader.cpp ('k') | src/core/SkSmallAllocator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkShader.cpp
diff --git a/src/core/SkShader.cpp b/src/core/SkShader.cpp
index 93d3bc91a616dcc2bed72c9090c0e8c57058c699..75f527bff3f1d6f3db531c2dd941f4e9c8ff2a77 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 {
« no previous file with comments | « src/core/SkPictureShader.cpp ('k') | src/core/SkSmallAllocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698