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

Issue 2475773005: Add SurfaceFactory::Reset (Closed)

Created:
4 years, 1 month ago by piman
Modified:
4 years, 1 month ago
Reviewers:
Fady Samuel
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add SurfaceFactory::Reset This can be used to keep the SurfaceFactory alive across CompositorFrameSink loss, to have its lifetime matchup better with the frame_sink_id_ registration, allowing further refactoring / simplification BUG=657959 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/50ca188c4d5206a8475c76133d69acc066ee3856 Cr-Commit-Position: refs/heads/master@{#430349}

Patch Set 1 : test #

Total comments: 2

Patch Set 2 : Add comment per review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -8 lines) Patch
M cc/surfaces/surface.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/surface.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/surfaces/surface_factory.h View 3 chunks +9 lines, -2 lines 0 comments Download
M cc/surfaces/surface_factory.cc View 1 2 chunks +12 lines, -3 lines 0 comments Download
M cc/surfaces/surface_factory_unittest.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M cc/surfaces/surface_resource_holder.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/surfaces/surface_resource_holder.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
piman
PTAL. See https://codereview.chromium.org/2483623002/ for a use case (I have a few more).
4 years, 1 month ago (2016-11-05 01:11:49 UTC) #8
Fady Samuel
lgtm, although I wonder if a Reset() API makes sense once the display compositor moves ...
4 years, 1 month ago (2016-11-05 05:26:45 UTC) #11
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/2475773005/40001
4 years, 1 month ago (2016-11-07 18:55:38 UTC) #15
piman
https://codereview.chromium.org/2475773005/diff/20001/cc/surfaces/surface_factory.cc File cc/surfaces/surface_factory.cc (right): https://codereview.chromium.org/2475773005/diff/20001/cc/surfaces/surface_factory.cc#newcode46 cc/surfaces/surface_factory.cc:46: weak_factory_.InvalidateWeakPtrs(); On 2016/11/05 05:26:44, Fady Samuel wrote: > nit: ...
4 years, 1 month ago (2016-11-07 18:55:41 UTC) #16
piman
On 2016/11/05 05:26:45, Fady Samuel wrote: > lgtm, although I wonder if a Reset() API ...
4 years, 1 month ago (2016-11-07 18:59:18 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 1 month ago (2016-11-07 19:50:55 UTC) #18
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 20:04:59 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/50ca188c4d5206a8475c76133d69acc066ee3856
Cr-Commit-Position: refs/heads/master@{#430349}

Powered by Google App Engine
This is Rietveld 408576698