aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBitmapProcState.cpp
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-05 19:09:57 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-05 19:09:57 +0000
commit40039a350bc7c1d650e1f0ba18f17734c5c3ba3e (patch)
treefb562a20b67449db47204e94611c8861c2bbe15a /src/core/SkBitmapProcState.cpp
parentf4f3faade67a4a24736c79aaaf570faffd0e3fdb (diff)
simplify making translate only invmatrix
BUG= R=humper@google.com Review URL: https://codereview.chromium.org/23875010 git-svn-id: http://skia.googlecode.com/svn/trunk@11114 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkBitmapProcState.cpp')
-rw-r--r--src/core/SkBitmapProcState.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkBitmapProcState.cpp b/src/core/SkBitmapProcState.cpp
index 390582d161..821d383e15 100644
--- a/src/core/SkBitmapProcState.cpp
+++ b/src/core/SkBitmapProcState.cpp
@@ -179,8 +179,8 @@ void SkBitmapProcState::possiblyScaleImage() {
// set the inv matrix type to translate-only;
- fInvMatrix.setTranslate( 1/fInvMatrix.getScaleX() * fInvMatrix.getTranslateX(),
- 1/fInvMatrix.getScaleY() * fInvMatrix.getTranslateY() );
+ fInvMatrix.setTranslate(fInvMatrix.getTranslateX() / fInvMatrix.getScaleX(),
+ fInvMatrix.getTranslateY() / fInvMatrix.getScaleY());
// no need for any further filtering; we just did it!