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

Unified Diff: src/core/SkBlitter.cpp

Issue 1763973002: Enforce 16byte alignment in shader contexts (patchset #1 id:1 of https://codereview.chromium.org/17… (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/SkBitmapProcShader.cpp ('k') | src/core/SkColorFilterShader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBlitter.cpp
diff --git a/src/core/SkBlitter.cpp b/src/core/SkBlitter.cpp
index c7c903dc6bcff4e2a305c13911abb7bda8a1bc58..ce7c4e8ccd70b966825c04fa09e66f0beea347e2 100644
--- a/src/core/SkBlitter.cpp
+++ b/src/core/SkBlitter.cpp
@@ -592,8 +592,8 @@ public:
SkSafeUnref(fProxy);
}
- size_t contextSize(const ContextRec& rec) const override {
- size_t size = sizeof(Sk3DShaderContext);
+ size_t onContextSize(const ContextRec& rec) const override {
+ size_t size = SkAlign16(sizeof(Sk3DShaderContext));
if (fProxy) {
size += fProxy->contextSize(rec);
}
« no previous file with comments | « src/core/SkBitmapProcShader.cpp ('k') | src/core/SkColorFilterShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698