|
Reduce SurfaceIdAllocator usage and tie SurfaceFactory to a single FrameSinkId
This CL takes us two steps along the long windy road to an out of
process display compositor.
1. In the near future, SurfaceIds will be allocated in clients in order to
avoid sync IPCs for offscreen canvas. Thus, we need to reduce our
reliance on SurfaceIdAllocator. SurfaceIdAllocator is often used simply
to find out the frame_sink_id(). This CL gives owners of
SurfaceIdAllocator a FrameSinkId directly and removes that accessor
from the ID allocator. This significantly reduces usage of
SurfaceIdAllocator.
2. SurfaceFactory's role was not well defined previously. It practice, it
corresponds to a single CompositorFrameSink but in tests, surface IDs
with different FrameSinkIds were submitting CompositorFrames to
the same SurfaceFactory. This CL establishes the invariant that a
SurfaceFactory belongs to a single CompositorFrameSink. In the near
future, we won't need to pass a SurfaceFactory a full SurfaceId
anymore, we can simply give it the "LocalFrameId" part and assume
a constant FrameSinkId. This will reduce the the data needed to send to
FrameSinkObservers from SurfaceFactories and from frame sources to
SurfaceFactories.
BUG= 647852
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel
Committed: https://crrev.com/b6acafa1d1e2107f66deeed51865fb233b03641b
Cr-Commit-Position: refs/heads/master@{#422688}
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+411 lines, -349 lines) |
Patch |
 |
M |
android_webview/browser/hardware_renderer.h
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/hardware_renderer.cc
|
View
|
1
|
4 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/surfaces_instance.h
|
View
|
1
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
android_webview/browser/surfaces_instance.cc
|
View
|
1
|
4 chunks |
+9 lines, -10 lines |
0 comments
|
Download
|
 |
M |
blimp/client/core/compositor/blimp_compositor.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
blimp/client/core/compositor/blimp_compositor.cc
|
View
|
1
|
4 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
blimp/client/support/compositor/blimp_embedder_compositor.h
|
View
|
1
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
blimp/client/support/compositor/blimp_embedder_compositor.cc
|
View
|
1
|
3 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
 |
M |
cc/output/compositor_frame_sink.h
|
View
|
1
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/direct_compositor_frame_sink.h
|
View
|
1
|
3 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/direct_compositor_frame_sink.cc
|
View
|
1
2
3
4
5
6
7
|
7 chunks |
+13 lines, -13 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/direct_compositor_frame_sink_unittest.cc
|
View
|
1
|
3 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/display_unittest.cc
|
View
|
1
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_aggregator_perftest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_aggregator_unittest.cc
|
View
|
1
2
|
37 chunks |
+51 lines, -40 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_factory.h
|
View
|
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_factory.cc
|
View
|
1
2
|
7 chunks |
+12 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_factory_unittest.cc
|
View
|
1
2
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_hittest_unittest.cc
|
View
|
1
2
|
19 chunks |
+80 lines, -51 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_id_allocator.h
|
View
|
1
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/surfaces/surfaces_pixeltest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/test/test_compositor_frame_sink.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_compositor_frame_sink.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+10 lines, -14 lines |
0 comments
|
Download
|
 |
M |
components/exo/surface.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/exo/surface.cc
|
View
|
1
2
3
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_guest.cc
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/gpu_process_transport_factory.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/render_widget_host_view_child_frame.h
|
View
|
1
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/render_widget_host_view_child_frame.cc
|
View
|
1
|
8 chunks |
+19 lines, -19 lines |
0 comments
|
Download
|
 |
M |
content/browser/frame_host/render_widget_host_view_guest.cc
|
View
|
1
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/browser_compositor_view_mac.mm
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/compositor_impl_android.h
|
View
|
1
|
3 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/compositor_impl_android.cc
|
View
|
1
|
7 chunks |
+10 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/delegated_frame_host.h
|
View
|
1
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/delegated_frame_host.cc
|
View
|
1
|
7 chunks |
+15 lines, -16 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_impl.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/android/synchronous_compositor_frame_sink.cc
|
View
|
1
|
5 chunks |
+9 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/test/test_render_view_host.h
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/test/test_render_view_host.cc
|
View
|
1
2
3
4
|
3 chunks |
+10 lines, -13 lines |
0 comments
|
Download
|
 |
M |
services/ui/surfaces/compositor_frame_sink.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
services/ui/surfaces/compositor_frame_sink.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+10 lines, -13 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/server_window_surface.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/server_window_surface.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+12 lines, -13 lines |
0 comments
|
Download
|
 |
M |
ui/android/delegated_frame_host_android.h
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/android/delegated_frame_host_android.cc
|
View
|
1
|
6 chunks |
+13 lines, -16 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/compositor.h
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/compositor.cc
|
View
|
1
|
4 chunks |
+16 lines, -18 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/compositor_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/compositor/test/in_process_context_factory.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 46 (30 generated)
|