diff options
author | Romain Guy <romainguy@google.com> | 2010-08-12 15:37:00 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-08-12 15:37:00 -0700 |
commit | 0ba681bce12d522c5575dfccb5a6ca12f0fba746 (patch) | |
tree | 5e99242b4abb19331003338fabea81ddf1111ce3 /libs/hwui/SkiaShader.cpp | |
parent | af28b514964861d81b48902f942f706050936d38 (diff) | |
download | frameworks_base-0ba681bce12d522c5575dfccb5a6ca12f0fba746.zip frameworks_base-0ba681bce12d522c5575dfccb5a6ca12f0fba746.tar.gz frameworks_base-0ba681bce12d522c5575dfccb5a6ca12f0fba746.tar.bz2 |
Fix GC issue, fix local shader transformations.
Change-Id: I208bdf89815dcd18dcadd43df932a77362918435
Diffstat (limited to 'libs/hwui/SkiaShader.cpp')
-rw-r--r-- | libs/hwui/SkiaShader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/SkiaShader.cpp b/libs/hwui/SkiaShader.cpp index 3569d6a..c7a01b1 100644 --- a/libs/hwui/SkiaShader.cpp +++ b/libs/hwui/SkiaShader.cpp @@ -164,7 +164,8 @@ void SkiaLinearGradientShader::setupProgram(Program* program, const mat4& modelV Rect start(mBounds[0], mBounds[1], mBounds[2], mBounds[3]); if (mMatrix) { mat4 shaderMatrix(*mMatrix); - shaderMatrix.mapRect(start); + shaderMatrix.mapPoint(start.left, start.top); + shaderMatrix.mapPoint(start.right, start.bottom); } snapshot.transform.mapRect(start); |