Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit cfdc5b65 authored by Greg Daniel's avatar Greg Daniel
Browse files

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
parent 04a3b4f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment