diff options
author | 2016-03-04 07:38:11 -0800 | |
---|---|---|
committer | 2016-03-04 07:38:12 -0800 | |
commit | a0cee5f30e9254187a6bb943e6b8a9296214c353 (patch) | |
tree | aacfb981277ecf224a86e643b1973768a44894e0 /src/core/SkColorShader.h | |
parent | 8b6394c24f755db39936e4e5111a3f251cc56857 (diff) |
remove align16 calls in skhader context sizes. will handle this elsewhere as needed
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1768433003
TBR=
basically reverts previous CL, but keeps the create --> onCreate change
Review URL: https://codereview.chromium.org/1768433003
Diffstat (limited to 'src/core/SkColorShader.h')
-rw-r--r-- | src/core/SkColorShader.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/SkColorShader.h b/src/core/SkColorShader.h index 985ab201cd..7f817b54be 100644 --- a/src/core/SkColorShader.h +++ b/src/core/SkColorShader.h @@ -57,9 +57,7 @@ protected: SkColorShader(SkReadBuffer&); void flatten(SkWriteBuffer&) const override; Context* onCreateContext(const ContextRec&, void* storage) const override; - size_t onContextSize(const ContextRec&) const override { - return SkAlign16(sizeof(ColorShaderContext)); - } + size_t onContextSize(const ContextRec&) const override { return sizeof(ColorShaderContext); } bool onAsLuminanceColor(SkColor* lum) const override { *lum = fColor; return true; |