Chromium Code Reviews
DescriptionAdd SurfaceWillDraw notification
Adds a SurfaceWillDraw notification to allow observers to monitor as
surfaces are added to the next display frame.
Viz will implement a hit-test component that will aggregate hit-test
information published along with compositor frames. The aggregated
data will be made available for hit testing in a shared memory object.
In order to ensure that the hit-test information matches the current
information for the frame it needs to know which surfaces have been
added to the current DisplayFrame.
A method has been added to Surface observer so that observers will be
notified as surfaces are added to the Display frame. The notification
is invoked during Surface Aggregation at the same place and following
the same convention as the existing RunWillDrawCallback - the key
difference being that this implementation allows one observer to
monitor all surfaces without creating observers for each surface
instance.
BUG=732398
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2938833002
Cr-Commit-Position: refs/heads/master@{#479865}
Committed: https://chromium.googlesource.com/chromium/src/+/a15e976b52b92c65ad791be142dbd5f11364ae07
Patch Set 1 #
Total comments: 3
Patch Set 2 : correct MojoFrameSinkManager::OnSurfaceWillDraw impl #
Total comments: 6
Patch Set 3 : correct typo in test implementation #Patch Set 4 : improve comments based on reviewer feedback #
Total comments: 3
Patch Set 5 : improve comments based on reviewer feedback #Patch Set 6 : rebase #Patch Set 7 : add unit test to verify that OnSurfaceWillDraw is called only for surfaces added to the CompositorF… #
Dependent Patchsets: Messages
Total messages: 43 (24 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||