|
|
Move ReferencedSurfaceTracker into GpuCompositorFrameSink.
Move the logic for adding/removing references from the client to the
GPU. We already pass a list of referenced surfaces, so just use that
list to compute a diff from the last submitted frame. This will
simplifying all clients and make removing SurfaceSequences easier in the
future. Add ReferencedSurfaceTracker to simplify this.
Also move add/removing top-level root references into
GpuCompositorFrameSink. This simplifies code in the mus Window Server.
FrameGenerator just needs to fill in
CompositorFrameMetadata::referenced_surfaces and clients that use
SurfaceLayers should just work.
This change only affects mustash, since non-mustash Chrome doesn't use
the Mojo interface for submitting CompositorFrames yet.
BUG= 659227
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2632273003
Cr-Commit-Position: refs/heads/master@{#444774}
Committed: https://chromium.googlesource.com/chromium/src/+/4e728beb8a92c33105c7562bf11bac2e3ece1eb7
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+404 lines, -579 lines) |
Patch |
 |
M |
cc/BUILD.gn
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/ipc/display_compositor.mojom
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/ipc/mojo_compositor_frame_sink.mojom
|
View
|
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/BUILD.gn
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/embedded_surface_tracker.h
|
View
|
1
|
1 chunk |
+0 lines, -97 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/embedded_surface_tracker.cc
|
View
|
1
|
1 chunk |
+0 lines, -95 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/embedded_surface_tracker_unittest.cc
|
View
|
1
|
1 chunk |
+0 lines, -192 lines |
0 comments
|
Download
|
 |
A |
cc/surfaces/referenced_surface_tracker.h
|
View
|
1
2
3
4
5
|
1 chunk |
+78 lines, -0 lines |
0 comments
|
Download
|
 |
A |
cc/surfaces/referenced_surface_tracker.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+80 lines, -0 lines |
0 comments
|
Download
|
 |
A |
cc/surfaces/referenced_surface_tracker_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+179 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/exo/compositor_frame_sink.h
|
View
|
1
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/exo/compositor_frame_sink.cc
|
View
|
1
|
1 chunk |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
|
View
|
|
1 chunk |
+2 lines, -12 lines |
0 comments
|
Download
|
 |
M |
services/ui/surfaces/display_compositor.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
services/ui/surfaces/gpu_compositor_frame_sink.h
|
View
|
1
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
services/ui/surfaces/gpu_compositor_frame_sink.cc
|
View
|
1
|
4 chunks |
+46 lines, -10 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/frame_generator.h
|
View
|
1
|
4 chunks |
+3 lines, -19 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/frame_generator.cc
|
View
|
1
|
6 chunks |
+8 lines, -91 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/server_window_delegate.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/test_server_window_delegate.h
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/test_server_window_delegate.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_server.h
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_server.cc
|
View
|
|
2 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
Total messages: 43 (27 generated)
|