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

Issue 2918883002: cc: Get rid of SurfaceDestroyed and use SurfaceDiscarded instead

Created:
3 years, 6 months ago by Fady Samuel
Modified:
3 years, 6 months ago
Reviewers:
sunnyps, Eric Seckler
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, cc-bugs_chromium.org, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Get rid of SurfaceDestroyed and use SurfaceDiscarded instead cc::Display was observing SurfaceDestroyed to pass along that information to the display scheduler. SurfaceDestroyed gets called when a surface is no longer used by the corresponding client, but not when it's no longer reachable from the root. BUG=none CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel

Patch Set 1 #

Patch Set 2 : Updated #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -19 lines) Patch
M cc/surfaces/display.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/surfaces/display.cc View 1 2 chunks +3 lines, -5 lines 0 comments Download
M cc/surfaces/display_scheduler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/display_scheduler.cc View 1 1 chunk +1 line, -1 line 1 comment Download
M cc/surfaces/display_scheduler_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/surface_manager.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/surfaces/surface_observer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M cc/test/fake_surface_observer.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/viz/frame_sinks/mojo_frame_sink_manager.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/viz/frame_sinks/mojo_frame_sink_manager.cc View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (6 generated)
Fady Samuel
3 years, 6 months ago (2017-06-01 21:46:52 UTC) #4
Eric Seckler
Should we add a call to SurfaceModified in CompositorFrameSinkSupport::DestroyCurrentSurface(), so that the DisplayScheduler doesn't continue ...
3 years, 6 months ago (2017-06-02 11:55:03 UTC) #8
Eric Seckler
https://codereview.chromium.org/2918883002/diff/20001/cc/surfaces/display_scheduler.cc File cc/surfaces/display_scheduler.cc (right): https://codereview.chromium.org/2918883002/diff/20001/cc/surfaces/display_scheduler.cc#newcode140 cc/surfaces/display_scheduler.cc:140: DCHECK(!base::ContainsKey(surface_states_, surface_id)); Hm, and it looks like this is ...
3 years, 6 months ago (2017-06-02 12:01:17 UTC) #9
sunnyps
3 years, 6 months ago (2017-06-02 17:28:41 UTC) #10
We need a way to tell display scheduler not to expect damage from the surface. I
don't have a strong opinion on if there should be a separate callback or if we
should use OnSurfaceModified with ack.has_damage = false.

Powered by Google App Engine
This is Rietveld 408576698