aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBitmapProcShader.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-31 18:09:01 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-31 18:09:01 +0000
commitf94b3a4cebd4adab09c40ebe23c02a615e10c394 (patch)
treea611a0cb0e1db232fbe5a1af0312eea05428dce1 /src/core/SkBitmapProcShader.cpp
parentc1f6db86dcf478d3c067bfc3fd99174b23d81732 (diff)
Make SkShader store localM directly rather than as a separate alloc.
May cause very slight GM changes in gpu two pt radial/conical radients. Review URL: https://codereview.appspot.com/6821056 git-svn-id: http://skia.googlecode.com/svn/trunk@6221 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkBitmapProcShader.cpp')
-rw-r--r--src/core/SkBitmapProcShader.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/SkBitmapProcShader.cpp b/src/core/SkBitmapProcShader.cpp
index 66d9d7645d..6ea55bc54d 100644
--- a/src/core/SkBitmapProcShader.cpp
+++ b/src/core/SkBitmapProcShader.cpp
@@ -329,10 +329,9 @@ bool SkBitmapProcShader::toDumpString(SkString* str) const {
// add the (optional) matrix
{
- SkMatrix m;
- if (this->getLocalMatrix(&m)) {
+ if (this->hasLocalMatrix()) {
SkString info;
- m.toDumpString(&info);
+ this->getLocalMatrix().toDumpString(&info);
str->appendf(" %s", info.c_str());
}
}