diff options
author | 2025-01-24 20:19:55 +0000 | |
---|---|---|
committer | 2025-01-24 21:47:26 +0000 | |
commit | cfdc5b655bd7f00228f956567f8865d3c2bd2b18 (patch) | |
tree | a4bd66b2c3d73715224f5b12358b943251850ed0 /libs/gui/ConsumerBase.cpp | |
parent | 04a3b4f2f512fdcba44a5f0434847659328f1a5c (diff) |
Move uses of SkSurface::makeImageSnapshot to makeTemporaryImage.
In graphite, makeImageSnapshot no longer has a copy on write symantic.
Instead it will always make a copy which is not need in many cases.
This CL changes the the uses of makeImageSnapshot where a copy isn't
needed to call makeTemporaryImage instead. This avoids the extra
copies in Graphite.
Besides possible performance wins, this also reduces a lot of extra
memory that was being allocated for these copies. This is most seen
in situtations using a lot of blurs.
Bug: b/293371537 , b/385380555
Test: manual comparison of memory metric
Flag: com.android.graphics.surfaceflinger.flags.graphite_renderengine
Change-Id: Ia9ed5c778f083b7a506158510438e656a4625a67
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions