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

Unified Diff: include/core/SkShader.h

Issue 379323002: Remove SK_SUPPORT_LEGACY_SHADER_LOCALMATRIX. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Comment about const-ness of fLocalMatrix. Created 6 years, 5 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 | « gyp/skia_for_android_framework_defines.gypi ('k') | src/core/SkPaintPriv.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkShader.h
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index 33a7a15b0f01b2f1628cb155331fba9ab0ede34a..e5af40dd7a181295a7433af9373a721e22805579 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -55,19 +55,6 @@ public:
*/
bool hasLocalMatrix() const { return !fLocalMatrix.isIdentity(); }
-#ifdef SK_SUPPORT_LEGACY_SHADER_LOCALMATRIX
- /**
- * Set the shader's local matrix.
- * @param localM The shader's new local matrix.
- */
- void setLocalMatrix(const SkMatrix& localM) { fLocalMatrix = localM; }
-
- /**
- * Reset the shader's local matrix to identity.
- */
- void resetLocalMatrix() { fLocalMatrix.reset(); }
-#endif
-
enum TileMode {
/** replicate the edge color if the shader draws outside of its
* original bounds
@@ -479,6 +466,8 @@ protected:
virtual Context* onCreateContext(const ContextRec&, void* storage) const;
private:
+ // This is essentially const, but not officially so it can be modified in
+ // constructors.
SkMatrix fLocalMatrix;
// So the SkLocalMatrixShader can whack fLocalMatrix in its SkReadBuffer constructor.
« no previous file with comments | « gyp/skia_for_android_framework_defines.gypi ('k') | src/core/SkPaintPriv.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698