diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-31 18:09:01 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-31 18:09:01 +0000 |
commit | f94b3a4cebd4adab09c40ebe23c02a615e10c394 (patch) | |
tree | a611a0cb0e1db232fbe5a1af0312eea05428dce1 /src/device/xps | |
parent | c1f6db86dcf478d3c067bfc3fd99174b23d81732 (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/device/xps')
-rw-r--r-- | src/device/xps/SkXPSDevice.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/device/xps/SkXPSDevice.cpp b/src/device/xps/SkXPSDevice.cpp index 8e62d49205..e1d5eedeaa 100644 --- a/src/device/xps/SkXPSDevice.cpp +++ b/src/device/xps/SkXPSDevice.cpp @@ -975,8 +975,7 @@ HRESULT SkXPSDevice::createXpsBrush(const SkPaint& skPaint, return S_OK; } - SkMatrix localMatrix; - shader->getLocalMatrix(&localMatrix); + SkMatrix localMatrix = shader->getLocalMatrix(); if (NULL != parentTransform) { localMatrix.preConcat(*parentTransform); } @@ -1022,8 +1021,7 @@ HRESULT SkXPSDevice::createXpsBrush(const SkPaint& skPaint, break; case SkShader::kDefault_BitmapType: { //TODO: outMatrix?? - SkMatrix localMatrix; - shader->getLocalMatrix(&localMatrix); + SkMatrix localMatrix = shader->getLocalMatrix(); if (NULL != parentTransform) { localMatrix.preConcat(*parentTransform); } |