Chromium Code Reviews
DescriptionSurfaces: Receive resources only once
ResourceRefs tracks the number of refs for a resource received from a
parent so that it can send back the same refs when the resource is no
longer used by the display compositor. Prior to this CL, we were
calling ReceiveRefs when a CompositorFrame is marked as pending and
again when it was activated. This causes us to doubly returns refs to
the client.
This CL calls ReceiveFromChild only once on Surface::QueueFrame (when
the frame is first received), and does not update the refs when a frame
goes from pending to active. If a pending or active frame is overwritten
refs are still returned.
BUG=672062
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2689563005
Cr-Commit-Position: refs/heads/master@{#449770}
Committed: https://chromium.googlesource.com/chromium/src/+/5d87c3aad9d1276390112859ec0f6a4b3ca89adc
Patch Set 1 #Patch Set 2 : Added a unit test #
Messages
Total messages: 18 (14 generated)
|
|||||||||||||||||||||||||||||||||||||