diff options
author | 2015-08-19 15:10:24 -0700 | |
---|---|---|
committer | 2015-08-19 15:10:25 -0700 | |
commit | 7c85c54499994c687a833644f7f213e747fadb98 (patch) | |
tree | 42a87d7a8963fd633f988dc7900d69b6e1948ff1 /libs/hwui/Snapshot.cpp | |
parent | e264f9a51ef2158df345c3c4b19dd6098e959141 (diff) |
Remove Matrix4::load(Matrix4&)
bug:22320446
Change-Id: Id6d1cc9b4aea828b0cdf622ad672064d72671f8d
Diffstat (limited to 'libs/hwui/Snapshot.cpp')
-rw-r--r-- | libs/hwui/Snapshot.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/hwui/Snapshot.cpp b/libs/hwui/Snapshot.cpp index fd077d9c8388..ca19a423e5c8 100644 --- a/libs/hwui/Snapshot.cpp +++ b/libs/hwui/Snapshot.cpp @@ -58,7 +58,7 @@ Snapshot::Snapshot(const sp<Snapshot>& s, int saveFlags) , mViewportData(s->mViewportData) , mRelativeLightCenter(s->mRelativeLightCenter) { if (saveFlags & SkCanvas::kMatrix_SaveFlag) { - mTransformRoot.load(*s->transform); + mTransformRoot = *s->transform; transform = &mTransformRoot; } else { transform = s->transform; @@ -190,8 +190,7 @@ void Snapshot::setClippingRoundRect(LinearAllocator& allocator, const Rect& boun state->highPriority = highPriority; // store the inverse drawing matrix - Matrix4 roundRectDrawingMatrix; - roundRectDrawingMatrix.load(getOrthoMatrix()); + Matrix4 roundRectDrawingMatrix = getOrthoMatrix(); roundRectDrawingMatrix.multiply(*transform); state->matrix.loadInverse(roundRectDrawingMatrix); |