diff options
author | Leon Scroggins III <scroggo@google.com> | 2019-04-17 08:34:54 -0400 |
---|---|---|
committer | Leon Scroggins III <scroggo@google.com> | 2019-04-17 08:34:54 -0400 |
commit | 3b814cbedd25195ad9366bc953b8707c6134a574 (patch) | |
tree | bbc064c020da5c643aa2fa8cc6cebf9c186f1c6f /libs/hwui/pipeline/skia/SkiaDisplayList.cpp | |
parent | 9f9684c45d1a25b5140ca85fec51cc7f0ea055fa (diff) |
Use structured bindings for mVectorDrawables
Test: Build
Change-Id: I60df096bf3720968039f7e4c5eac86682b2fc684
Diffstat (limited to 'libs/hwui/pipeline/skia/SkiaDisplayList.cpp')
-rw-r--r-- | libs/hwui/pipeline/skia/SkiaDisplayList.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/hwui/pipeline/skia/SkiaDisplayList.cpp b/libs/hwui/pipeline/skia/SkiaDisplayList.cpp index 41bcfc25f5c1..780ac20c65aa 100644 --- a/libs/hwui/pipeline/skia/SkiaDisplayList.cpp +++ b/libs/hwui/pipeline/skia/SkiaDisplayList.cpp @@ -131,13 +131,12 @@ bool SkiaDisplayList::prepareListAndChildren( } } - for (auto& vectorDrawablePair : mVectorDrawables) { + for (auto& [vectorDrawable, cachedMatrix] : mVectorDrawables) { // If any vector drawable in the display list needs update, damage the node. - auto& vectorDrawable = vectorDrawablePair.first; if (vectorDrawable->isDirty()) { Matrix4 totalMatrix; info.damageAccumulator->computeCurrentTransform(&totalMatrix); - Matrix4 canvasMatrix(vectorDrawablePair.second); + Matrix4 canvasMatrix(cachedMatrix); totalMatrix.multiply(canvasMatrix); const SkRect& bounds = vectorDrawable->properties().getBounds(); if (intersects(info.screenSize, totalMatrix, bounds)) { |