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

Unified Diff: src/core/SkLocalMatrixShader.h

Issue 1759323002: Revert of enforce 16byte alignment in shader contexts (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/SkLightingShader.cpp ('k') | src/core/SkPictureShader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkLocalMatrixShader.h
diff --git a/src/core/SkLocalMatrixShader.h b/src/core/SkLocalMatrixShader.h
index 8edea40d05bd1d896bcca7d31ef86bb96ddb4716..d897d49ded4cdd455472626a0190df6f7f9080be 100644
--- a/src/core/SkLocalMatrixShader.h
+++ b/src/core/SkLocalMatrixShader.h
@@ -18,6 +18,10 @@
: INHERITED(&localMatrix)
, fProxyShader(SkRef(proxy))
{}
+
+ size_t contextSize(const ContextRec& rec) const override {
+ return fProxyShader->contextSize(rec);
+ }
GradientType asAGradient(GradientInfo* info) const override {
return fProxyShader->asAGradient(info);
@@ -49,10 +53,6 @@
void flatten(SkWriteBuffer&) const override;
Context* onCreateContext(const ContextRec&, void*) const override;
- size_t onContextSize(const ContextRec& rec) const override {
- return fProxyShader->contextSize(rec);
- }
-
bool onIsABitmap(SkBitmap* bitmap, SkMatrix* matrix, TileMode* mode) const override {
return fProxyShader->isABitmap(bitmap, matrix, mode);
}
« no previous file with comments | « src/core/SkLightingShader.cpp ('k') | src/core/SkPictureShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698