Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Issue 2689563005: Surfaces: Receive resources only once (Closed)

Created:
3 years, 10 months ago by Fady Samuel
Modified:
3 years, 10 months ago
Reviewers:
vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org, rjkroege, kylechar
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Surfaces: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -13 lines) Patch
M cc/resources/returned_resource.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M cc/surfaces/compositor_frame_sink_support_unittest.cc View 1 4 chunks +81 lines, -1 line 0 comments Download
M cc/surfaces/surface.cc View 1 3 chunks +8 lines, -12 lines 0 comments Download

Messages

Total messages: 18 (14 generated)
Fady Samuel
+vmpstr@ for review +rjkroege@, kylechar@ FYI
3 years, 10 months ago (2017-02-10 20:24:49 UTC) #9
vmpstr
lgtm
3 years, 10 months ago (2017-02-10 22:06:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2689563005/20001
3 years, 10 months ago (2017-02-10 22:08:07 UTC) #15
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 22:44:43 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/5d87c3aad9d1276390112859ec0f...

Powered by Google App Engine
This is Rietveld 408576698