diff options
author | 2014-10-02 04:42:55 -0700 | |
---|---|---|
committer | 2014-10-02 04:42:55 -0700 | |
commit | 2a382f519999109b2e3445e73ddb4f0eae926b51 (patch) | |
tree | 127cba2501d7074a7e902f36b8900e3dc02c91a2 /include | |
parent | b77955e1b1b94f5a472b4f5fc620d5dc83425a1f (diff) |
Revert of specialize setConcat for scale+translate (patchset #1 id:1 of https://codereview.chromium.org/620433002/)
Reason for revert:
Experimental to see if this revert "fixes" nanobench on the main console.
Original issue's description:
> specialize setConcat for scale+translate, helps drawText perf
>
> BUG=skia:
>
> Committed: https://skia.googlesource.com/skia/+/e8db3ef2a2161084fa8eb1fd1d54c35bfff52d6c
TBR=jvanverth@google.com,reed@google.com
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/620973003
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkMatrix.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h index b3c7378ab2..9f44bed9c4 100644 --- a/include/core/SkMatrix.h +++ b/include/core/SkMatrix.h @@ -646,29 +646,6 @@ private: SkScalar fMat[9]; mutable SkTRacy<uint32_t> fTypeMask; - void setScaleTranslate(SkScalar sx, SkScalar sy, SkScalar tx, SkScalar ty) { - fMat[kMScaleX] = sx; - fMat[kMSkewX] = 0; - fMat[kMTransX] = tx; - - fMat[kMSkewY] = 0; - fMat[kMScaleY] = sy; - fMat[kMTransY] = ty; - - fMat[kMPersp0] = 0; - fMat[kMPersp1] = 0; - fMat[kMPersp2] = 1; - - unsigned mask = 0; - if (sx != 1 || sy != 1) { - mask |= kScale_Mask; - } - if (tx || ty) { - mask |= kTranslate_Mask; - } - this->setTypeMask(mask | kRectStaysRect_Mask); - } - uint8_t computeTypeMask() const; uint8_t computePerspectiveTypeMask() const; |