Index: include/utils/SkMatrix44.h |
diff --git a/include/utils/SkMatrix44.h b/include/utils/SkMatrix44.h |
index 9d9b6e01029e5b7887d8aa2059e2b79430a234ef..6e85bb56f4bc2841852c30d4def5841a0ca26bd2 100644 |
--- a/include/utils/SkMatrix44.h |
+++ b/include/utils/SkMatrix44.h |
@@ -224,6 +224,12 @@ public: |
inline void setDouble(int row, int col, double value) { |
this->set(row, col, SkDoubleToMScalar(value)); |
} |
+ inline float getFloat(int row, int col) const { |
+ return SkMScalarToFloat(this->get(row, col)); |
+ } |
+ inline void setFloat(int row, int col, float value) { |
+ this->set(row, col, SkFloatToMScalar(value)); |
+ } |
/** These methods allow one to efficiently read matrix entries into an |
* array. The given array must have room for exactly 16 entries. Whenever |